Skip to content

Commit

Permalink
Fix PLG cleanup that left behind /etc/rc.d/rc.snmp
Browse files Browse the repository at this point in the history
  • Loading branch information
kubedzero committed Apr 10, 2021
1 parent d467585 commit 46196aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snmp.plg
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ do
[ -z "$line" ] && continue

echo "Deleting $line"
rm -rf "$line"
# rm -rf "/path/to/prefix*" will not work due to quotes, wrap in bash exec
bash -c "rm -rf $line"
done < <(printf '%s\n' "$dirs_files_to_remove")

printf "\nDirectory and file removal done"
Expand Down

0 comments on commit 46196aa

Please sign in to comment.