install: Fix for sh instead of bash.

This commit is contained in:
Fabian Schlenz 2021-11-02 14:58:20 +01:00
parent 40ab734bb3
commit f46b00c896

View File

@ -1,8 +1,12 @@
#!/bin/sh #!/bin/sh
SOURCE=$(dirname $0) SOURCE=$(dirname $0)
[[ -e "$SOURCE/dbash" ]] || { echo "Please cd to the directory containing this file and try to run _install.sh again." ; exit 1; } TARGET="/usr/local/bin"
TARGET=/usr/local/bin
if [ ! -e "$SOURCE/dbash" ]; then
echo "Please cd to the directory containing this file and try to run _install.sh again."
exit 1
fi
ln -sf "$SOURCE/dbash" "$TARGET/dbash" ln -sf "$SOURCE/dbash" "$TARGET/dbash"
ln -sf "$SOURCE/dhelp" "$TARGET/dhelp" ln -sf "$SOURCE/dhelp" "$TARGET/dhelp"