fix: remove unused env variable
This commit is contained in:
@@ -38,21 +38,6 @@ mkdir -p \
|
||||
"$NPM_CACHE" \
|
||||
"$PIP_CACHE"
|
||||
|
||||
START_DIR="${1:-$PROJECTS_DIR}"
|
||||
shift || true
|
||||
|
||||
if [[ "$START_DIR" = /* ]]; then
|
||||
if [[ "$START_DIR" == "$PROJECTS_DIR"* ]]; then
|
||||
REL="${START_DIR#"$PROJECTS_DIR"}"
|
||||
START_DIR="/workspace${REL}"
|
||||
else
|
||||
echo "Absolute paths outside $PROJECTS_DIR require --mount and are not accepted as the initial directory." >&2
|
||||
exit 2
|
||||
fi
|
||||
else
|
||||
START_DIR="/workspace/${START_DIR#./}"
|
||||
fi
|
||||
|
||||
ARGS=(
|
||||
run --rm -it
|
||||
--name opencode-dev
|
||||
@@ -64,8 +49,6 @@ ARGS=(
|
||||
--security-opt=no-new-privileges
|
||||
--cap-drop=ALL
|
||||
|
||||
-e "START_DIR=${START_DIR}"
|
||||
|
||||
-v "$OPC_CONFIG:/home/dev/.config/opencode:rw"
|
||||
-v "$OPC_DATA:/home/dev/.local/share/opencode:rw"
|
||||
-v "$OPC_CACHE:/home/dev/.cache/opencode:rw"
|
||||
|
||||
Reference in New Issue
Block a user