From 14f219d7811465f6f660910d6b937984e99848d0 Mon Sep 17 00:00:00 2001 From: Matteo Rossini Date: Sat, 16 Oct 2021 00:05:15 +0200 Subject: [PATCH] fixed test to check download space --- src/slackpkgplus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slackpkgplus.sh b/src/slackpkgplus.sh index ef9ca2d..8a8a8a6 100755 --- a/src/slackpkgplus.sh +++ b/src/slackpkgplus.sh @@ -1811,7 +1811,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then done available=$(df $TEMP|grep -v ^Filesystem|tail -1|awk '{print $4}') echo "Total space required to download: $[$compressed/1024] MB; Available: $[$available/1024] MB" - if [ $available -gt $compressed ];then + if [ $available -lt $compressed ];then echo "No sufficient space to download packages. Do you want to continue anyway? (y/N)" answer if [ "$ANSWER" != "Y" ] && [ "$ANSWER" != "y" ]; then