Skip to content

Commit

Permalink
fix: check docker-compose directory
Browse files Browse the repository at this point in the history
  • Loading branch information
zsq1234 committed Oct 8, 2024
1 parent db221ee commit b95da0a
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,28 +235,28 @@ if [ -f docker-compose/.env ] && [ -f docker-compose/run.sh ]; then
else
read -r -p "docker-compose directory already exists, do you want to overwrite it? [y/N] " response
fi
if [ "$response" == "y" ] || [ "$response" == "Y" ]; then
case "$osType" in
"darwin")
tar_overwrite="-U"
;;
"linux")
tar_overwrite="--overwrite"
;;
esac
else
case "$osType" in
"darwin")
tar_overwrite="-k"
;;
"linux")
tar_overwrite="--skip-old-files"
;;
"mingw")
tar_overwrite="--skip-old-files"
;;
esac
fi
fi
if [ "$response" == "y" ] || [ "$response" == "Y" ]; then
case "$osType" in
"darwin")
tar_overwrite="-U"
;;
"linux")
tar_overwrite="--overwrite"
;;
esac
else
case "$osType" in
"darwin")
tar_overwrite="-k"
;;
"linux")
tar_overwrite="--skip-old-files"
;;
"mingw")
tar_overwrite="--skip-old-files"
;;
esac
fi

mkdir -p docker-compose \
Expand Down

0 comments on commit b95da0a

Please sign in to comment.