Add docker to the devcontainer
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
readonly wanted_line_key="LOCAL_WORKSPACE_FOLDER"
|
||||
readonly wanted_line="${wanted_line_key}='${PWD}'"
|
||||
readonly file=".env"
|
||||
|
||||
echo "Writing ${wanted_line} to ${file}" >&2
|
||||
if grep --quiet "^${wanted_line_key}=" "${file}"; then
|
||||
sed --in-place "s,^${wanted_line_key}=.*,${wanted_line}," "${file}"
|
||||
else
|
||||
echo "LOCAL_WORKSPACE_FOLDER='${PWD}'" >"${file}"
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
||||
git submodule update --init
|
||||
Reference in New Issue
Block a user