Cheer up shellcheck

This commit is contained in:
Oliver Blanthorn 2019-09-23 07:33:13 +01:00
parent f8bf5d10e4
commit 394772d100
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
temp=$(mktemp -d)
unzip -qq $1 -d $temp
jq '.applications.gecko.id' $temp/manifest.json | tr -d '"'
unzip -qq "$1" -d "$temp"
jq '.applications.gecko.id' "$temp"/manifest.json | tr -d '"'

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
installdir=${1:-/usr/lib/firefox/browser/extensions}
xpi=web-ext-artifacts/$(ls -t web-ext-artifacts/ | head -n1)
install -Dm644 $xpi $installdir/$(scripts/get_id_from_xpi.sh $xpi).xpi
install -Dm644 "$xpi" "$installdir"/"$(scripts/get_id_from_xpi.sh "$xpi")".xpi