Skip to content

Commit

Permalink
fix recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
zeriyoshi committed Aug 22, 2024
1 parent fd95405 commit 3090e69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pskel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ get_ext_dir() {
echo "[Pskel] Development Containers workspace detected, use \"/workspaces/pskel/ext\"." >&2
PSKEL_EXT_DIR="/workspaces/pskel/ext"
else
if test -f "/ext/.gitkeep" && test $(cat "/ext/.gitkeep") = "pskel_uninitialized"; then
if test -f "/ext/.gitkeep" && test $(cat "/ext/.gitkeep") = "pskel_uninitialized" && ! test "x${1}" = "x--no-init"; then
echo "[Pskel] Uninitialized project detected, initialize default skeleton." >&2
cmd_init "skeleton"
fi
Expand Down Expand Up @@ -43,7 +43,7 @@ EOF
return 0
fi

PSKEL_EXT_DIR="$(get_ext_dir)"
PSKEL_EXT_DIR="$(get_ext_dir --no-init)"
/usr/local/bin/php "/usr/src/php/ext/ext_skel.php" --ext "${1}" --dir "/tmp" ${@}
rm "${PSKEL_EXT_DIR}/.gitkeep"
rsync -av "/tmp/${1}/" "${PSKEL_EXT_DIR}/"
Expand Down

0 comments on commit 3090e69

Please sign in to comment.