Skip to content

Commit

Permalink
Fix bashism
Browse files Browse the repository at this point in the history
According to shellcheck, `[[` can be unavailable. And indeed, on my Debian box, it is not valid with `/bin/sh`
  • Loading branch information
Glandos authored May 25, 2022
1 parent 73b6533 commit 9ec3de3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/carbonapi/fpm/carbon-user-systemd-reload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ if [ ! -e "${CONF}" ]; then
fi

# reload systemd
[[ -e /bin/systemctl ]] && /bin/systemctl daemon-reload ||:
if [ -e /bin/systemctl ]; then
/bin/systemctl daemon-reload
fi

0 comments on commit 9ec3de3

Please sign in to comment.