Explorar o código

Whine less about immutable folders

Zachary Kotlarek %!s(int64=11) %!d(string=hai) anos
pai
achega
f81d555e1a
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      findRecode.sh

+ 1 - 2
findRecode.sh

@@ -52,7 +52,7 @@ FILES="`find "${FOLDER}" -type f -maxdepth 1 -size "+${MIN_SIZE}" | grep -iE "${
 # Record the last scan start time, in a temp file
 LAST_RECODE_TMP=""
 if [ -n "${LAST_RECODE_FILE}" ]; then
-	LAST_RECODE_TMP="`mktemp "${LAST_RECODE_FILE}.XXXXXX"`"
+	LAST_RECODE_TMP="`mktemp "${LAST_RECODE_FILE}.XXXXXX" 2>/dev/null`"
 fi
 
 # Loop with newline-as-IFS
@@ -137,4 +137,3 @@ IFS="${OLDIFS}"
 if [ -n "${LAST_RECODE_TMP}" ]; then
 	mv "${LAST_RECODE_TMP}" "${LAST_RECODE_FILE}"
 fi
-