Remove temporary files
This commit is contained in:
parent
0fb521daf6
commit
1e42b869b7
2 changed files with 2 additions and 1 deletions
|
@ -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)"'"'"}")"
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
rm $archiveName
|
Loading…
Reference in a new issue