Rev 3407 Rev 3417
Line 81... Line 81...
81 [[ -d "$DAYDIR" ]] || mkdir -p "$DAYDIR" 81 [[ -d "$DAYDIR" ]] || mkdir -p "$DAYDIR"
82 82
83 # check if directory really exists (if fs is full it might not be created) 83 # check if directory really exists (if fs is full it might not be created)
84 [[ -d "$DAYDIR" ]] && mv "$i" "$DAYDIR" 84 [[ -d "$DAYDIR" ]] && mv "$i" "$DAYDIR"
85 85
86 echo -n "$YEAR$SLASH$MONTH$SLASH$DAY" > LAST 86 echo -n "$YEAR$SLASH$MONTH$SLASH$DAY$SLASH$HOUR" > LAST
87 echo -n "$YEAR$SLASH$MONTH$SLASH$DAY" > "$1"/LAST 87 echo -n "$YEAR$SLASH$MONTH$SLASH$DAY" > "$1"/LAST
88 done 88 done
89 else 89 else
90 echo "No .""$EXT"" files to sort" 90 echo "No .""$EXT"" files to sort"
91 fi 91 fi