Skip to content

Commit e0c0f61

Browse files
fix: make rm wrapper silent
1 parent 3419adf commit e0c0f61

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,10 @@ unlink_recursive() {
1111
unlink_recursive "$entry"
1212
done 2>/dev/null
1313

14-
# Then try to remove the path itself
15-
if rmdir "$path" 2>/dev/null; then
16-
:
17-
elif unlink "$path" 2>/dev/null; then
18-
:
19-
else
20-
:
21-
fi
14+
unlink "$path" 2>/dev/null || :
2215
}
2316

2417
for target in "$@"; do
25-
echo "Unlinking broken symlinks..."
2618
unlink_recursive "$target"
2719
done
2820

0 commit comments

Comments
 (0)