refactor: move helper scripts into .bin folder and update tasks.json
This commit is contained in:
9
.bin/create-home-tarball.sh
Executable file
9
.bin/create-home-tarball.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
if [ "$(basename "$(pwd -P)")" != "workspaces" ]; then
|
||||
echo "Error: this script must be run from a directory named 'workspaces', not '$(basename "$(pwd -P)")'" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
tar -czf home.tar.gz --owner root --group secproc --xform "s,$PWD,/home/devuser," .config .local .ssh start.sh
|
Reference in New Issue
Block a user