keen4: Quote variable references

ShellCheck SC2086.
This commit is contained in:
Victor Engmark 2021-11-14 13:38:03 +13:00
parent 8df865561f
commit f367033a87

View File

@ -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