diff options
author | Victor Engmark <victor@engmark.name> | 2021-11-14 13:38:03 +1300 |
---|---|---|
committer | Victor Engmark <victor@engmark.name> | 2021-11-19 23:57:51 +1300 |
commit | f367033a8784261b8317576e3a1977035ccdea63 (patch) | |
tree | 99e3aaf2413f144cba52628e7277c60a4bf5b576 /pkgs | |
parent | 8df865561fbc53922f1e801c3deeb53c12ce8c4f (diff) |
keen4: Quote variable references
ShellCheck SC2086.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/games/keen4/builder.sh | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/pkgs/games/keen4/builder.sh b/pkgs/games/keen4/builder.sh index b5864b8392f5b..3c9a1e9eb2d2d 100644 --- a/pkgs/games/keen4/builder.sh +++ b/pkgs/games/keen4/builder.sh @@ -1,10 +1,11 @@ -source $stdenv/setup -mkdir -p $out/share/keen4 -unzip -j $dist -d $out/share/keen4 +source "$stdenv"/setup -mkdir -p $out/bin -cat > $out/bin/keen4 <<EOF +mkdir -p "$out"/share/keen4 +unzip -j "$dist" -d "$out"/share/keen4 + +mkdir -p "$out"/bin +cat > "$out"/bin/keen4 <<EOF #! $SHELL -e if test -z "\$HOME"; then echo "HOME directory not set" @@ -17,9 +18,9 @@ fi mkdir -p \$HOME/.keen4 cd \$HOME/.keen4 -ln -sf $out/share/keen4/* . +ln -sf "$out"/share/keen4/* . -$dosbox/bin/dosbox ./KEEN4E.EXE -fullscreen -exit || true +"$dosbox"/bin/dosbox ./KEEN4E.EXE -fullscreen -exit || true # Cleanup the symlinks. for i in *; do @@ -28,4 +29,4 @@ for i in *; do fi done EOF -chmod +x $out/bin/keen4 +chmod +x "$out"/bin/keen4 |