explicit test if /etc/profile.d is a directory rather than for the

general existence of /etc/profile.d
This commit is contained in:
Benjamin Morrison 2020-07-03 19:49:33 -04:00
parent 3eac3167ac
commit 4b30a05ba2
Signed by: gbmor
GPG Key ID: 8F192E4720BB0DAC
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ else
install -m666 -o root -g "$FILEGRP" clinte.json "$DBDIR"
fi
if [ -e /etc/profile.d ]; then
if [ -d /etc/profile.d ]; then
printf '%s\n' 'Installing check_new_clinte_posts.sh to /etc/profile.d'
install -m644 -o root -g "$FILEGRP" check_new_clinte_posts.sh /etc/profile.d/
fi