Skip to content

Commit

Permalink
Add shebang to scripts
Browse files Browse the repository at this point in the history
They are required so that system can recognize them as actual script files and
won't try executing them as binaries.
  • Loading branch information
ratijas authored Jun 15, 2023
1 parent 5747454 commit d502ece
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pkg/install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

cd "$(dirname "$(readlink -f "$0")")"

echo "Checking 'usbaccess' user group..."
Expand Down
3 changes: 2 additions & 1 deletion pkg/logcurrentrun.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
journalctl --user -u sdgyrodsu -b | grep "\[$(systemctl --user status sdgyrodsu | grep 'Main PID' | sed 's/.*PID: \([0-9]\+\).*/\1/')\]" --color=never
#!/bin/sh

journalctl --user -u sdgyrodsu -b | grep "\[$(systemctl --user status sdgyrodsu | grep 'Main PID' | sed 's/.*PID: \([0-9]\+\).*/\1/')\]" --color=never
2 changes: 2 additions & 0 deletions pkg/uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

echo "Uninstalling the service"
systemctl --user -q stop sdgyrodsu.service >/dev/null 2>&1
systemctl --user -q disable sdgyrodsu.service >/dev/null 2>&1
Expand Down
3 changes: 2 additions & 1 deletion pkg/update.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

echo "Grabbing latest release..."
if curl -L -O -s https://github.com/kmicki/SteamDeckGyroDSU/releases/latest/download/SteamDeckGyroDSUSetup.zip >/dev/null; then
echo "Latest release downloaded."
Expand Down Expand Up @@ -25,4 +27,3 @@ cd
rm -rf $HOME/SteamDeckGyroDSUSetup

exit $code

0 comments on commit d502ece

Please sign in to comment.