Prechádzať zdrojové kódy

[enh] scripts: use source cmd to retreive helpers.

Moul 8 rokov pred
rodič
commit
7c82a96ca3
5 zmenil súbory, kde vykonal 5 pridanie a 5 odobranie
  1. 1 1
      scripts/backup
  2. 1 1
      scripts/install
  3. 1 1
      scripts/remove
  4. 1 1
      scripts/restore
  5. 1 1
      scripts/upgrade

+ 1 - 1
scripts/backup

@@ -7,7 +7,7 @@ set -eu
 app=$YNH_APP_INSTANCE_NAME
 
 # Source YunoHost helpers
-. /usr/share/yunohost/helpers
+source /usr/share/yunohost/helpers
 
 # Backup sources & data
 # Note: the last argument is where to save this path, see the restore script.

+ 1 - 1
scripts/install

@@ -23,7 +23,7 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
 language=$YNH_APP_ARG_LANGUAGE
 
 # Source YunoHost helpers
-. /usr/share/yunohost/helpers
+source /usr/share/yunohost/helpers
 
 # Save app settings
 ynh_app_setting_set "$app" admin "$admin"

+ 1 - 1
scripts/remove

@@ -4,7 +4,7 @@
 app=$YNH_APP_INSTANCE_NAME
 
 # Source YunoHost helpers
-. /usr/share/yunohost/helpers
+source /usr/share/yunohost/helpers
 
 # Retrieve app settings
 domain=$(ynh_app_setting_get "$app" domain)

+ 1 - 1
scripts/restore

@@ -10,7 +10,7 @@ set -eu
 app=$YNH_APP_INSTANCE_NAME
 
 # Source YunoHost helpers
-. /usr/share/yunohost/helpers
+source /usr/share/yunohost/helpers
 
 # Retrieve old app settings
 domain=$(ynh_app_setting_get "$app" domain)

+ 1 - 1
scripts/upgrade

@@ -7,7 +7,7 @@ set -eu
 app=$YNH_APP_INSTANCE_NAME
 
 # Source YunoHost helpers
-. /usr/share/yunohost/helpers
+source /usr/share/yunohost/helpers
 
 # Retrieve app settings
 domain=$(ynh_app_setting_get "$app" domain)