Remove temporary files

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

View file

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

View file

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