Skip to content

Commit c4c4702

Browse files
committed
Fix uninstall bug
1 parent b0d31c7 commit c4c4702

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

librewolf-sync/librewolf-sync.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,19 @@ EOF
2323
exit 0
2424
}
2525

26-
while getopts dhp:r: options
26+
while getopts dhrp: options
2727
do
2828
case $options in
2929
d) echo "default profile directory is ~/.librewolf/$LINK"
3030
exit 0;;
3131
h) longhelp;;
3232
p) LINK="$OPTARG";;
33-
r) mv "$VOLATILE" "~/.librewolf/$LINK-copy"
33+
r) mv $VOLATILE ~/.librewolf/"$LINK"-copy
3434
mv ~/.librewolf/"$LINK"{,-trash}
3535
mv ~/.librewolf/"$STATIC"{,-trash}
3636
mv ~/.librewolf/"$LINK"{-copy,}
37-
rm -rf ~/.librewolf/{"$LINK","$STATIC"}-trash;;
37+
rm -rf ~/.librewolf/{"$LINK","$STATIC"}-trash
38+
exit 0;;
3839
?) usage
3940
exit 0;;
4041
esac

0 commit comments

Comments
 (0)