summary refs log tree commit diff
path: root/pkgs/applications/emulators/citra/update.sh
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2022-12-03 02:52:34 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2022-12-17 23:32:43 +0100
commit04a1c0d7add4ebe7a1092b7d22968d26fc0de379 (patch)
tree3863e49a398e914cfe5597d7f7fb61b263768eb3 /pkgs/applications/emulators/citra/update.sh
parentafeb3385fcc78d8fb133ec2bcabcb53a4facb227 (diff)
downloadnixpkgs-04a1c0d7add4ebe7a1092b7d22968d26fc0de379.tar
nixpkgs-04a1c0d7add4ebe7a1092b7d22968d26fc0de379.tar.gz
nixpkgs-04a1c0d7add4ebe7a1092b7d22968d26fc0de379.tar.bz2
nixpkgs-04a1c0d7add4ebe7a1092b7d22968d26fc0de379.tar.lz
nixpkgs-04a1c0d7add4ebe7a1092b7d22968d26fc0de379.tar.xz
nixpkgs-04a1c0d7add4ebe7a1092b7d22968d26fc0de379.tar.zst
nixpkgs-04a1c0d7add4ebe7a1092b7d22968d26fc0de379.zip
treewide: fix quoting of GITHUB_TOKEN in curl
Diffstat (limited to 'pkgs/applications/emulators/citra/update.sh')
-rwxr-xr-xpkgs/applications/emulators/citra/update.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/emulators/citra/update.sh b/pkgs/applications/emulators/citra/update.sh
index eec36818fed..6b68e3327a2 100755
--- a/pkgs/applications/emulators/citra/update.sh
+++ b/pkgs/applications/emulators/citra/update.sh
@@ -27,7 +27,7 @@ updateNightly() {
     OLD_NIGHTLY_VERSION="$(getLocalVersion "citra-nightly")"
     OLD_NIGHTLY_HASH="$(getLocalHash "citra-nightly")"
 
-    NEW_NIGHTLY_VERSION="$(curl -s ${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
+    NEW_NIGHTLY_VERSION="$(curl -s ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} \
         "https://api.github.com/repos/citra-emu/citra-nightly/releases?per_page=1" | jq -r '.[0].name' | cut -d"-" -f2 | cut -d" " -f2)"
 
     if [[ "${OLD_NIGHTLY_VERSION}" = "${NEW_NIGHTLY_VERSION}" ]]; then
@@ -52,7 +52,7 @@ updateCanary() {
     OLD_CANARY_VERSION="$(getLocalVersion "citra-canary")"
     OLD_CANARY_HASH="$(getLocalHash "citra-canary")"
 
-    NEW_CANARY_VERSION="$(curl -s ${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \
+    NEW_CANARY_VERSION="$(curl -s ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} \
         "https://api.github.com/repos/citra-emu/citra-canary/releases?per_page=1" | jq -r '.[0].name' | cut -d"-" -f2 | cut -d" " -f1)"
 
     if [[ "${OLD_CANARY_VERSION}" = "${NEW_CANARY_VERSION}" ]]; then