Skip to content

Commit 1e45b13

Browse files
HodgegoblinxFreed0m
authored andcommitted
Fix zero-byte repos cleanup. Working on #112
Was passing string not variable.
1 parent a9dc0cb commit 1e45b13

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

updater-current.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@ sudo find /usr/share/ -name ORIG_HEAD -size -1b -delete
2121
# Fix: sherlock no such file
2222
sudo sed -i 's/\/usr\/share\/sherlock\/sherlock\.py/\/usr\/share\/sherlock\/sherlock\/sherlock.py/' /usr/bin/sherlock
2323

24+
# Fix: stego-toolkit and exifscan
25+
clean_dir() {
26+
if [ -d "${1}" ]; then
27+
if [ "$(wc -c <"${1}"/README.md)" -lt 1 ]; then
28+
echo README.md is zero byte size fixing..
29+
# Regular update process should clone when it sees no dir
30+
sudo rm -rf "${1}"
31+
fi
32+
fi
33+
}
34+
35+
STEGO_DIR=/usr/share/stego-toolkit
36+
EXIFSCAN_DIR=/usr/share/exifscan
37+
38+
clean_dir "${STEGO_DIR}"
39+
clean_dir "${EXIFSCAN_DIR}"
40+
2441
#################
2542

2643
tput setaf 5;echo "[+] Replace Kali Firefox Bookmarks..."

0 commit comments

Comments
 (0)