From c544fe48027ab425716c9a5b37543593532814fd Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 3 Oct 2024 22:22:22 -0500 Subject: [PATCH] prevent stdout from tar, feed executable shell args, add sh passthrough in README --- .gitignore | 5 ++++- README.md | 2 +- run.sh | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index c41cc9e..2e5c349 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ -/target \ No newline at end of file +/target +*.tar.gz +*.zip +spotify-quickauth \ No newline at end of file diff --git a/README.md b/README.md index 8c51b93..f3e8279 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/run.sh b/run.sh index 8d48f13..55d423e 100755 --- a/run.sh +++ b/run.sh @@ -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 \ No newline at end of file +./$EXECUTABLE $@ \ No newline at end of file