Fix installation of brave extensions
This commit is contained in:
parent
056131e206
commit
de4ceadd9e
1 changed files with 11 additions and 1 deletions
|
@ -17,12 +17,22 @@ begin
|
|||
if type -q "$bins[$i]"
|
||||
set bin "$bins[$i]"
|
||||
set extensionRoot "$extensionRoots[$i]"
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
BROWSER_BIN="$bin" \
|
||||
EXTENSION_POLICY_DIR="$braveExtensions" \
|
||||
EXTENSION_POLICY_DIR="$extensionRoot" \
|
||||
bash "$dir/../Chromium/ytmdl.sh"
|
||||
|
||||
for i in (seq (count $bins))
|
||||
if [ "$extensionRoots[$i]" != "$extensionRoot" ]
|
||||
if [ -d "$extensionRoots[$i]" ]
|
||||
sudo rm -rf "$extensionRoots[$i]"
|
||||
sudo ln -s "$extensionRoot" "$extensionRoots[$i]"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
runInstaller $argv
|
||||
|
|
Loading…
Reference in a new issue