1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

remove unnecessary recursive flag

You are dealing with files, not directories, so using recursive flag for removal can only create potential disaster scenarios (in case variable is blank for example).

Most likely, you don't need the `-f` flag either.
This commit is contained in:
Lauri Piisang
2018-07-11 14:24:46 +03:00
committed by GitHub
parent 82f1a20714
commit 591d85c00e
+1 -1
View File
@@ -149,7 +149,7 @@ mkdir -p "$HOME/.cht.sh/"
lines=$(tput lines)
TMP1=$(mktemp /tmp/cht.sh.XXXXXXXXXXXXX)
trap 'rm -rf $TMP1 $TMP2' EXIT
trap 'rm -f $TMP1 $TMP2' EXIT
trap 'true' INT
if ! [ -e "$HOME/.cht.sh/.hushlogin" ] && [ -z "$this_query" ]; then