From 38cf9c5d9a277237ddef43f8c3b6238e7c274c9e Mon Sep 17 00:00:00 2001 From: Limezy Date: Sun, 5 Jun 2022 16:56:24 +0700 Subject: [PATCH] Update ynh_add_swap --- scripts/ynh_add_swap | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/ynh_add_swap b/scripts/ynh_add_swap index 106f956..0f7a2ee 100644 --- a/scripts/ynh_add_swap +++ b/scripts/ynh_add_swap @@ -45,9 +45,10 @@ ynh_add_swap () { local swap_size=0 fi - echo "Tests valeurs" + echo $swap_size + echo $() # If there's enough space for a swap, and no existing swap here - if [ $swap_size -ne 0 ] && [ ! -e /swap_$app ] + if [[ $swap_size -ne 0 ]] && [[ ! -e /swap_$app ]] then echo "OK ici" # Create file