mirror of
https://github.com/Xevion/spotify-quickauth.git
synced 2025-12-06 15:16:37 -06:00
remove debug printing, use trap for terminate + standard exit, remove archive early
This commit is contained in:
8
run.sh
8
run.sh
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -ex
|
||||
set -e
|
||||
|
||||
if [ "$OS" = "Windows_NT" ]; then
|
||||
target="x86_64-pc-windows-msvc"
|
||||
@@ -30,7 +30,7 @@ fi
|
||||
EXECUTABLE="spotify-player-quickauth"
|
||||
curl -Lso $EXECUTABLE.tar.gz $DOWNLOAD_URL
|
||||
tar -xvf $EXECUTABLE.tar.gz $EXECUTABLE
|
||||
rm $EXECUTABLE.tar.gz
|
||||
chmod +x $EXECUTABLE
|
||||
./$EXECUTABLE
|
||||
rm $EXECUTABLE
|
||||
rm $EXECUTABLE.tar.gz
|
||||
trap "rm -f $EXECUTABLE" INT EXIT
|
||||
./$EXECUTABLE
|
||||
Reference in New Issue
Block a user