Browse Source

ynh_die does not exists before helpers sourcing

Alexandre Aubin 6 years ago
parent
commit
bbc821a632
2 changed files with 4 additions and 6 deletions
  1. 2 4
      scripts/backup
  2. 2 2
      scripts/restore

+ 2 - 4
scripts/backup

@@ -1,7 +1,3 @@
-#!/bin/bash
-
-ynh_die "backup script is not implemented"
-
 
 #=================================================
 # GENERIC START
@@ -17,6 +13,8 @@ fi
 source _common.sh
 source /usr/share/yunohost/helpers
 
+ynh_die "backup script is not implemented yet"
+
 #=================================================
 # MANAGE SCRIPT FAILURE
 #=================================================

+ 2 - 2
scripts/restore

@@ -1,7 +1,5 @@
 #!/bin/bash
 
-ynh_die "restore script is not implemented"
-
 #=================================================
 # IMPORT GENERIC HELPERS
 #=================================================
@@ -14,6 +12,8 @@ fi
 source _common.sh
 source /usr/share/yunohost/helpers
 
+ynh_die "restore script is not implemented yet"
+
 #=================================================
 # MANAGE SCRIPT FAILURE
 #=================================================