File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ xdg_uninstall_f() {
152
152
153
153
# Remove symlink for arduino
154
154
echo " " # Ensure password request message is on new line
155
- if ! rm /usr/local/bin/arduino; then
156
- echo " Removing symlink failed. Hope that's OK. If not then rerun as root with sudo."
155
+ if [ -f /usr/local/bin/arduino ] ; then
156
+ rm /usr/local/bin/arduino || echo " Removing symlink failed. Hope that's OK. If not then rerun as root with sudo."
157
157
fi
158
158
159
159
}
@@ -189,8 +189,8 @@ simple_uninstall_f() {
189
189
190
190
# Remove symlink for arduino
191
191
echo " " # Ensure password request message is on new line
192
- if ! rm /usr/local/bin/arduino; then
193
- echo " Removing symlink failed. Hope that's OK. If not then rerun as root with sudo."
192
+ if [ -f /usr/local/bin/arduino ] ; then
193
+ rm /usr/local/bin/arduino || echo " Removing symlink failed. Hope that's OK. If not then rerun as root with sudo."
194
194
fi
195
195
196
196
}
You can’t perform that action at this time.
0 commit comments