fix some shellcheck warnings for profile.d

This commit is contained in:
Jens Petersen 2018-09-21 17:50:13 +09:00
parent 9521a9b8e4
commit 898a191ad7
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
CABALBIN=${HOME}/.cabal/bin
if ! echo ${PATH} | /bin/grep -q ${CABALBIN} ; then
if [ -d ${CABALBIN} ]; then
if ! echo "${PATH}" | /bin/grep -q "${CABALBIN}" ; then
if [ -d "${CABALBIN}" ]; then
PATH=${PATH}:${CABALBIN}
fi
fi