Fix installation of brave extensions

This commit is contained in:
Manuel Thalmann 2024-07-30 00:52:55 +02:00
parent 056131e206
commit de4ceadd9e

View file

@ -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