diff --git a/hidche/app/entrypoint.sh b/hidche/app/entrypoint.sh index aa2445f..84b6046 100755 --- a/hidche/app/entrypoint.sh +++ b/hidche/app/entrypoint.sh @@ -14,7 +14,9 @@ if [ ! -f "$samRoot/index.php" ]; then mkdir -p $samRoot chown -R www-data:www-data $wwwRoot gosu www-data git clone $gameGitPath $samRoot + pushd $samRoot gosu www-data git checkout $gameGitBranch + popd fi if [ "$HIDCHE_IMAGE_USE_INTERNAL" = "yes" ] && [ ! -d "$imageRoot" ]; then @@ -29,4 +31,4 @@ if [ "$HIDCHE_IMAGE_USE_INTERNAL" = "yes" ] && [ ! -d "$imageRoot" ]; then gosu www-data git clone $imgGitPath $imageRoot fi -exec "$@" \ No newline at end of file +exec "$@"