17 lines
551 B
Text
17 lines
551 B
Text
if [[ -d "$HOME"/.librewolf ]]; then
|
|
index=0
|
|
PSNAME="$browser"
|
|
while read -r profileItem; do
|
|
if [[ $(echo "$profileItem" | cut -c1) = "/" ]]; then
|
|
# path is not relative
|
|
DIRArr[$index]="$profileItem"
|
|
else
|
|
# we need to append the default path to give a
|
|
# fully qualified path
|
|
DIRArr[$index]="$HOME/.librewolf/$profileItem"
|
|
fi
|
|
(( index=index+1 ))
|
|
done < <(grep '[Pp]'ath= "$HOME"/.librewolf/profiles.ini | sed 's/[Pp]ath=//')
|
|
fi
|
|
|
|
check_suffix=1
|