Skip to content

Commit

Permalink
pstorm arch files were not removed after update().
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Dec 11, 2017
1 parent 013ac51 commit 907b405
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions sploitctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@
################################################################################

# sploitctl.sh version
VERSION="sploitctl.sh v1.8"
VERSION="sploitctl.sh v1.9"

# return codes
SUCCESS=0
FAILURE=1

# true / false flags
TRUE=1
FALSE=0

# verbose mode - default: quiet
VERBOSE="/dev/null"

Expand Down Expand Up @@ -55,7 +59,7 @@ M00_URL="https://github.com/BlackArch/m00-exploits/raw/master/m00-exploits.tar.g
LSDPL_URL="https://github.com/BlackArch/lsd-pl-exploits/archive/master.zip"

# clean up, delete downloaded archive files (default: on)
CLEAN=1
CLEAN=$TRUE

# user agent string for curl
USERAGENT="blackarch/${VERSION}"
Expand Down Expand Up @@ -106,11 +110,13 @@ msg()
# delete downloaded archive files
clean()
{
if [ $CLEAN -eq 1 ]
if [ $CLEAN -eq $TRUE ]
then
msg "deleting archive files"
# Not defined by POSIX (SC2039). Read the commit message for details.
rm -rf "${EXPLOIT_DIR}"/{*.tar,*.tgz,*.tar.gz,*.tar.bz2,*zip} \
rm -rf "${EXPLOIT_DIR}"/{*.tar,*.tgz,*.tar.gz,*.tar.bz2,*.tar.xz,*.zip}\
> ${DEBUG} 2>&1
rm -rf "${PSTORM_DIR}"/{*.tar,*.tgz,*.tar.gz,*.tar.bz2,*.tar.xz,*.zip}\
> ${DEBUG} 2>&1
fi

Expand Down Expand Up @@ -654,7 +660,7 @@ get_opts()
URL_FILE="${OPTARG}"
;;
c)
CLEAN=0
CLEAN=$FALSE
;;
v)
VERBOSE="/dev/stdout"
Expand Down

0 comments on commit 907b405

Please sign in to comment.