Fix incorrect sudo
call
This commit is contained in:
parent
542174a2af
commit
63c368fa85
1 changed files with 6 additions and 5 deletions
|
@ -7,11 +7,12 @@ EXTENSION_POLICY_DIR="${EXTENSION_POLICY_DIR}";
|
||||||
# Elevate script
|
# Elevate script
|
||||||
if [ ! "$UID" -eq 0 ]
|
if [ ! "$UID" -eq 0 ]
|
||||||
then
|
then
|
||||||
EXTENSION_NAME="${EXTENSION_NAME}" \
|
sudo \
|
||||||
UNPACKED_EXTENSION="${UNPACKED_EXTENSION}" \
|
EXTENSION_NAME="${EXTENSION_NAME}" \
|
||||||
EXTENSION_DIR="${EXTENSION_DIR}" \
|
UNPACKED_EXTENSION="${UNPACKED_EXTENSION}" \
|
||||||
EXTENSION_POLICY_DIR="${EXTENSION_POLICY_DIR}" \
|
EXTENSION_DIR="${EXTENSION_DIR}" \
|
||||||
sudo bash "$BASH_SOURCE" "$USER";
|
EXTENSION_POLICY_DIR="${EXTENSION_POLICY_DIR}" \
|
||||||
|
bash "$BASH_SOURCE" "$USER";
|
||||||
else
|
else
|
||||||
keyFile="$UNPACKED_EXTENSION.pem";
|
keyFile="$UNPACKED_EXTENSION.pem";
|
||||||
extensionFile="$UNPACKED_EXTENSION.crx";
|
extensionFile="$UNPACKED_EXTENSION.crx";
|
||||||
|
|
Loading…
Reference in a new issue