Merge pull request #537 from ewof/patch-1

fix profile sed
This commit is contained in:
Luke Smith 2023-10-28 00:21:25 +00:00 committed by GitHub
commit 22c637b5fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -356,7 +356,7 @@ profilesini="$browserdir/profiles.ini"
# Start librewolf headless so it generates a profile. Then get that profile in a variable. # Start librewolf headless so it generates a profile. Then get that profile in a variable.
sudo -u "$name" librewolf --headless >/dev/null 2>&1 & sudo -u "$name" librewolf --headless >/dev/null 2>&1 &
sleep 1 sleep 1
profile="$(sed -n "/Default=.*.default-release/ s/.*=//p" "$profilesini")" profile="$(sed -n "/Default=.*.default-default/ s/.*=//p" "$profilesini")"
pdir="$browserdir/$profile" pdir="$browserdir/$profile"
[ -d "$pdir" ] && makeuserjs [ -d "$pdir" ] && makeuserjs