Эх сурвалжийг харах

Whine less about immutable folders

Zachary Kotlarek 11 жил өмнө
parent
commit
f81d555e1a
1 өөрчлөгдсөн 1 нэмэгдсэн , 2 устгасан
  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
 # Record the last scan start time, in a temp file
 LAST_RECODE_TMP=""
 LAST_RECODE_TMP=""
 if [ -n "${LAST_RECODE_FILE}" ]; then
 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
 fi
 
 
 # Loop with newline-as-IFS
 # Loop with newline-as-IFS
@@ -137,4 +137,3 @@ IFS="${OLDIFS}"
 if [ -n "${LAST_RECODE_TMP}" ]; then
 if [ -n "${LAST_RECODE_TMP}" ]; then
 	mv "${LAST_RECODE_TMP}" "${LAST_RECODE_FILE}"
 	mv "${LAST_RECODE_TMP}" "${LAST_RECODE_FILE}"
 fi
 fi
-