mirror of
https://github.com/jakejarvis/subtake.git
synced 2025-06-27 16:45:41 -04:00
better handling of clearing temp files (https://github.com/koalaman/shellcheck/wiki/SC2115)
This commit is contained in:
2
sonar.sh
2
sonar.sh
@ -11,8 +11,8 @@ time_start=$(date -u +%s)
|
|||||||
tempdir=/tmp/sonar
|
tempdir=/tmp/sonar
|
||||||
|
|
||||||
# Make sure there aren't existing temp files
|
# Make sure there aren't existing temp files
|
||||||
|
rm -rf ${tempdir:?}
|
||||||
mkdir -p $tempdir
|
mkdir -p $tempdir
|
||||||
rm -rf ${tempdir:?}/*
|
|
||||||
|
|
||||||
|
|
||||||
# Download dataset from Rapid7 if not already provided
|
# Download dataset from Rapid7 if not already provided
|
||||||
|
Reference in New Issue
Block a user