Skip to content

Commit

Permalink
fix: codespace path
Browse files Browse the repository at this point in the history
  • Loading branch information
zeriyoshi committed Aug 22, 2024
1 parent b72c2fb commit 32d0de2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
}
},
"dockerComposeFile": "./../compose.yaml",
"service": "shell"
"service": "shell",
"workspaceFolder": "/workspaces/pskel"
}
4 changes: 2 additions & 2 deletions .devcontainer/local/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
{
"type": "bind",
"source": "./",
"target": "/workspace/pskel"
"target": "/workspaces/pskel"
}
],
"workspaceFolder": "/workspace/pskel"
"workspaceFolder": "/workspaces/pskel"
}
12 changes: 6 additions & 6 deletions pskel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ EOF

PSKEL_EXT_DIR="/ext"

if test -d "/workspace/pskel/ext"; then
echo "[Pskel] Development containers workspace detected, use \"/workspace/pskel/ext\"." >&2
PSKEL_EXT_DIR="/workspace/pskel/ext"
if test -d "/workspaces/pskel/ext"; then
echo "[Pskel] Development containers workspace detected, use \"/workspaces/pskel/ext\"." >&2
PSKEL_EXT_DIR="/workspaces/pskel/ext"
fi

/usr/local/bin/php "/usr/src/php/ext/ext_skel.php" --ext "${1}" --dir "/tmp" ${@}
Expand Down Expand Up @@ -90,9 +90,9 @@ EOF

PSKEL_EXT_DIR="/ext"

if test -d "/workspace/pskel/ext"; then
echo "[Pskel] Development containers workspace detected, use \"/workspace/pskel/ext\"." >&2
PSKEL_EXT_DIR="/workspace/pskel/ext"
if test -d "/workspaces/pskel/ext"; then
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
echo "[Pskel] Uninitialized project detected, initialize default skeleton." >&2
Expand Down

0 comments on commit 32d0de2

Please sign in to comment.