diff --git a/CHANGES.txt b/CHANGES.txt index 025b539..3fbad06 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +v3.0.51 +- Bug fix for checking free space on USB drives. Issue #63 + v3.0.50 - Bug fix for Hyper backup where moving `@img_bkp_cache` could cause an error. Issue #54 - Bug fix Container Manager and Docker where moving `@docker` could cause an error. Issues #34 #38 #46 diff --git a/syno_app_mover.sh b/syno_app_mover.sh index 1b934d8..5427289 100644 --- a/syno_app_mover.sh +++ b/syno_app_mover.sh @@ -136,7 +136,7 @@ # DONE Bug fix when script updates itself and user ran the script from ./scriptname.sh -scriptver="v3.0.50" +scriptver="v3.0.51" script=Synology_app_mover repo="007revad/Synology_app_mover" scriptname=syno_app_mover @@ -868,7 +868,8 @@ vol_free_space(){ free="" # var is used later in script if [[ -d "$1" ]]; then # Get amount of free space on $1 volume - free=$(df --output=avail "$1" | grep -A1 Avail | grep -v Avail) + #free=$(df --output=avail "$1" | grep -A1 Avail | grep -v Avail) # dfs / for USB drives. # Issue #63 + free=$(df | grep "$1" | awk '{print $4}') # dfs correctly for USB drives. # Issue #63 fi }