Shell programming hygiene (#97884)
This commit is contained in:
parent
972fc49364
commit
a8d6213726
@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#!nix-shell -i bash -p curl gnugrep gnused gawk
|
#!nix-shell -i bash -p curl gnugrep gnused gawk
|
||||||
|
|
||||||
|
set -eou pipefail
|
||||||
|
|
||||||
ROOT="$(dirname "$(readlink -f "$0")")"
|
ROOT="$(dirname "$(readlink -f "$0")")"
|
||||||
if [ ! -f "$ROOT/vscode.nix" ]; then
|
if [ ! -f "$ROOT/vscode.nix" ]; then
|
||||||
echo "ERROR: cannot find vscode.nix in $ROOT"
|
echo "ERROR: cannot find vscode.nix in $ROOT"
|
||||||
|
Loading…
Reference in New Issue
Block a user