prevent stdout from tar, feed executable shell args, add sh passthrough in README

This commit is contained in:
2024-10-03 22:22:22 -05:00
parent 6e7c6bbb66
commit c544fe4802
3 changed files with 7 additions and 4 deletions

5
.gitignore vendored
View File

@@ -1 +1,4 @@
/target
/target
*.tar.gz
*.zip
spotify-quickauth

View File

@@ -9,7 +9,7 @@ You can install this application, but most people will just need it once. The fo
For Linux and macOS, you can paste this command into your terminal:
```bash
curl -sSL https://xevion.github.io/spotify-quickauth/run.sh | sh
curl -sSL https://xevion.github.io/spotify-quickauth/run.sh | sh -s --
```
For Windows, you can paste this command into PowerShell:

4
run.sh
View File

@@ -29,8 +29,8 @@ fi
EXECUTABLE="spotify-quickauth"
curl -Lso $EXECUTABLE.tar.gz $DOWNLOAD_URL
tar -xvf $EXECUTABLE.tar.gz $EXECUTABLE
tar -xvf $EXECUTABLE.tar.gz $EXECUTABLE 1>/dev/null
rm $EXECUTABLE.tar.gz
chmod +x $EXECUTABLE
trap "rm -f $EXECUTABLE" INT EXIT
./$EXECUTABLE
./$EXECUTABLE $@