Skip to content

Commit 6252cb8

Browse files
committed
i
1 parent ac97b4f commit 6252cb8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

install.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
echo "PATH=$PATH" >> log.out
4-
echo "OSTYPE=$OSTYPE" > log.out
4+
echo "OSTYPE=$OSTYPE" >> log.out
55
echo "--- /etc/os-release" >> log.out
66
cat /etc/os-release >> log.out
77
echo "---" >> log.out
@@ -20,7 +20,7 @@ get_bindir() {
2020
echo "Could not find a directory inside \$PATH which is inside your home directory."
2121
echo
2222
echo "Consider adding this to ~/.bash_profile or ~/.zshenv"
23-
echo "export PATH=~/.local/bin:\"$PATH\""
23+
echo "export PATH=~/.local/bin:\"\$PATH\""
2424
exit 1
2525
fi
2626
echo "BINDIR=$BINDIR" >> log.out
@@ -88,10 +88,10 @@ install_package() {
8888
}
8989

9090
install_command() {
91-
mkdir -p $BINDIR
91+
mkdir -p "$BINDIR"
9292
get_command_python
93-
echo -e '#!/bin/sh\nexec '$PYTHON' -m goboscript "$@"' > $BINDIR/gsc
94-
chmod +x $BINDIR/gsc
93+
echo -e '#!/bin/sh\nexec '"$PYTHON"' -m goboscript "$@"' > "$BINDIR"/gsc
94+
chmod +x "$BINDIR/gsc"
9595
echo "Goboscript is installed, Use the gsc command to run it."
9696
}
9797

0 commit comments

Comments
 (0)