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