Fix incorrect variable names
This commit is contained in:
parent
b41f39a733
commit
45f5ed8ff8
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ else
|
|||
|
||||
destination="$EXTENSION_DIR/$EXTENSION_NAME.crx";
|
||||
|
||||
sudo -u "$1" brave-browser --pack-extension="$extensionDir";
|
||||
sudo -u "$1" brave-browser --pack-extension="$UNPACKED_EXTENSION";
|
||||
|
||||
# Tamper manifest file
|
||||
manifest="$(cat "$manifestFile" | jq ". + {key: "'"'"$(openssl rsa -in "$keyFile" -pubout -outform DER | openssl base64 -A)"'"'"}")";
|
||||
|
@ -29,7 +29,7 @@ else
|
|||
# Pack extension
|
||||
extensionID="$(openssl rsa -in "$keyFile" -pubout -outform DER | sha256sum | head -c32 | tr 0-9a-f a-p)";
|
||||
extensionVersion="$(cat "$manifestFile" | jq -r '.version')";
|
||||
sudo -u "$1" brave-browser --pack-extension="$extensionDir" --pack-extension-key="$keyFile";
|
||||
sudo -u "$1" brave-browser --pack-extension="$UNPACKED_EXTENSION" --pack-extension-key="$keyFile";
|
||||
|
||||
# Install extension and preinstall it
|
||||
cp "$extensionFile" "$EXTENSION_DIR";
|
||||
|
|
Loading…
Reference in a new issue