mirror of
https://github.com/srlabs/blue-merle.git
synced 2025-01-09 22:29:28 -05:00
Stacked additional rm commands in mac-wipe.sh to
ensure files may be deleted if shred dependency is not installed or fails to work. Passes local sanity test.
This commit is contained in:
parent
09d2f8c087
commit
40362dfccf
@ -39,18 +39,18 @@ GASLIGHT
|
|||||||
# Kills process responsible for manipulating (and protecting) the /tmp/ file instance
|
# Kills process responsible for manipulating (and protecting) the /tmp/ file instance
|
||||||
killall -9 gltertf
|
killall -9 gltertf
|
||||||
|
|
||||||
# shredding /tmp/tertf
|
# shredding /tmp/tertf, rm for good measure
|
||||||
if [ -f "$tmp_file" ];then
|
if [ -f "$tmp_file" ];then
|
||||||
echo "Files found within /tmp/. Let's get to it."
|
echo "Files found within /tmp/. Let's get to it."
|
||||||
shred -v -u "$tmp_file"
|
shred -v -u "$tmp_file" || rm -f "$tmp_file"
|
||||||
else
|
else
|
||||||
echo "No file found within /tmp/tertf. No shredding to be done there."
|
echo "No file found within /tmp/tertf. No shredding to be done there."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# shredding /etc/tertf
|
# shredding /etc/tertf, , rm for good measure
|
||||||
if [ -f "$etc_file" ]; then
|
if [ -f "$etc_file" ]; then
|
||||||
echo "Files found in /etc/. Let's get to it."
|
echo "Files found in /etc/. Let's get to it."
|
||||||
shred -v -u "$etc_file" #-v provides verbose output to ease my anxious mind and -u deletes files after they are overwritten
|
shred -v -u "$etc_file" || rm -f "$tmp_file"
|
||||||
else
|
else
|
||||||
echo "No file found within /etc/tertf. No shredding to be done there."
|
echo "No file found within /etc/tertf. No shredding to be done there."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user