|
|
@@ -3,7 +3,7 @@
|
|
|
# prune_dir - prune directory by deleting files if we are low on space
|
|
|
#
|
|
|
DIR=/media/usb/ftp/data/domsod/FI9900P_00626E69B672/record
|
|
|
-CAPACITY_LIMIT=55
|
|
|
+CAPACITY_LIMIT=95
|
|
|
|
|
|
if [ "$DIR" == "" ]
|
|
|
then
|
|
|
@@ -32,7 +32,7 @@ then
|
|
|
# we are below the limit. Just
|
|
|
# delete regular files, ignore directories.
|
|
|
#
|
|
|
- ls -rt | while read FILE
|
|
|
+ ls -rt $DIR | while read FILE
|
|
|
do
|
|
|
if [ -f $FILE ]
|
|
|
then
|