fixed test to check download space

This commit is contained in:
Matteo Rossini 2021-10-16 00:05:15 +02:00
parent 2c80c1335b
commit 14f219d781

View file

@ -1811,7 +1811,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
done done
available=$(df $TEMP|grep -v ^Filesystem|tail -1|awk '{print $4}') available=$(df $TEMP|grep -v ^Filesystem|tail -1|awk '{print $4}')
echo "Total space required to download: $[$compressed/1024] MB; Available: $[$available/1024] MB" 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)" echo "No sufficient space to download packages. Do you want to continue anyway? (y/N)"
answer answer
if [ "$ANSWER" != "Y" ] && [ "$ANSWER" != "y" ]; then if [ "$ANSWER" != "Y" ] && [ "$ANSWER" != "y" ]; then