Skip to content

Commit

Permalink
quote the sudo calls to docker otherwise shellcheck thinks they are c…
Browse files Browse the repository at this point in the history
…alling the override function
  • Loading branch information
Dave North committed May 25, 2016
1 parent 6a3d783 commit 46d4531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-clean
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ function restartMachine {
# Upstart covers SysV and OpenRC as well.
if [[ $init_system =~ upstart ]]; then
if [[ $DRY_RUN == false ]]; then
sudo service docker restart
sudo service "docker" restart
else
echo "Restart command that would be run: sudo service docker restart"
fi
Expand All @@ -579,7 +579,7 @@ function restartMachine {
fi
elif [[ $init_system =~ rc ]]; then
if [[ $DRY_RUN == false ]]; then
sudo launchctl restart docker
sudo launchctl restart "docker"
else
echo "Restart command that would be run: sudo launchctl restart docker"
fi
Expand Down

0 comments on commit 46d4531

Please sign in to comment.