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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user