fix profile sed

This commit is contained in:
ewof 2023-10-27 14:50:08 -04:00 committed by GitHub
parent 8c2f220c86
commit 15c68eaed4
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