Skip to content
Permalink
Browse files

Fix container script in case of git worktree

  • Loading branch information...
nrobinaubertin committed Aug 22, 2019
1 parent 9c50b72 commit c3d106605cfd642c2270604bfaffaf1c0bfe9b0d
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/zusam
@@ -3,18 +3,18 @@
CONTAINER_NAME="zusam"

cdroot() {
if ! [ -d ".git" ] && [ "$(pwd)" != "/" ]; then
if ! [ -e ".git" ] && [ "$(pwd)" != "/" ]; then
cd ..
cdroot
fi
}

start_docker_service() {
if [ -n "$(which systemctl 2>/dev/null)" ]; then
if [ -n "$(command -v systemctl 2>/dev/null)" ]; then
sudo systemctl start docker
return
fi
if [ -n "$(which service 2>/dev/null)" ]; then
if [ -n "$(command -v service 2>/dev/null)" ]; then
sudo service docker start
return
fi

0 comments on commit c3d1066

Please sign in to comment.
You can’t perform that action at this time.