Skip to content

Commit

Permalink
Check if $id is non-zero
Browse files Browse the repository at this point in the history
You package non-statically compiled Node, so it doesn't work on systems which don't have glibc, e.g. Voidlinux.
This causes $id to be an empty variable.
This means `rm -r ~/.config/`.
Yep, I just deleted my entire ~/.config directory by running your script.
  • Loading branch information
E100Beta authored Nov 5, 2017
1 parent f693cb2 commit bb33e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rm ~/.config/chromium/NativeMessagingHosts/${id}.json
echo " .. Removing manifest file for Mozilla Firefox"
rm ~/.mozilla/native-messaging-hosts/${id}.json
echo " .. Removing executable"
rm -r ~/.config/${id}
[ -n "$id" ] && rm -r ~/.config/${id}

echo
echo ">>> Native Client is removed <<<".

0 comments on commit bb33e89

Please sign in to comment.