Skip to content

Commit 35b1c9c

Browse files
Update rm-wrapper.sh
1 parent e0c0f61 commit 35b1c9c

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/plugins/terminal/scripts/rm-wrapper.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,18 @@ unlink_recursive() {
1010
esac
1111
unlink_recursive "$entry"
1212
done 2>/dev/null
13-
13+
1414
unlink "$path" 2>/dev/null || :
1515
}
1616

1717
for target in "$@"; do
1818
unlink_recursive "$target"
1919
done
2020

21-
busybox rm "$@"
21+
busybox rm "$@"
22+
23+
# Run busybox rm, capture stderr, and filter out the "No such file or directory" message
24+
err="$(busybox rm "$@" 2>&1 >/dev/null)"
25+
26+
# Print only real errors
27+
printf "%s\n" "$err" | grep -v "No such file or directory"

0 commit comments

Comments
 (0)