Remove temporary files

This commit is contained in:
Manuel Thalmann 2022-11-12 03:45:23 +01:00
parent bdf0938afc
commit ef66a60a6d
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ] if [ ! "$UID" -eq 0 ]
then then
exec sudo bash "$0" "$USER" exec sudo bash "$0" "$USER"
@ -31,6 +32,7 @@ destination=$extensionRoot/$extensionName.crx
mkdir -p $extensionRoot mkdir -p $extensionRoot
sudo -u $1 unzip $archiveName -d $extensionDir sudo -u $1 unzip $archiveName -d $extensionDir
sudo -u $1 brave-browser --pack-extension=$extensionDir sudo -u $1 brave-browser --pack-extension=$extensionDir
rm $archiveName
# Tamper manifest file # Tamper manifest file
manifest="$(cat $manifestFile | jq ". + {key: "'"'"$(openssl rsa -in $keyFile -pubout -outform DER | openssl base64 -A)"'"'"}")" manifest="$(cat $manifestFile | jq ". + {key: "'"'"$(openssl rsa -in $keyFile -pubout -outform DER | openssl base64 -A)"'"'"}")"

View file

@ -1 +0,0 @@
rm $archiveName