diff --git a/ch12/binary_name_rotation.sh b/ch12/binary_name_rotation.sh index 52d41fc..e3872ca 100644 --- a/ch12/binary_name_rotation.sh +++ b/ch12/binary_name_rotation.sh @@ -6,7 +6,7 @@ BIN_FILE="${RANDOM_BIN_NAMES[${RANDOMIZE}]}" FULL_BIN_PATH="${WORK_DIR}/${BIN_FILE}" self_removal(){ - shred -u -- "$(basename $0)" && rm -- "${FULL_BIN_PATH}" + shred -u -- "$(basename $0)" && rm -f -- "${FULL_BIN_PATH}" } if command -v curl 1> /dev/null; then