mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix Bash detection for ynh_load_app_environment
This commit is contained in:
parent
425670bcfb
commit
072dabaf70
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ ynh_load_app_environment() {
|
|||
ynh_handle_getopts_args "$@"
|
||||
|
||||
# Force Bash to be used to run this helper
|
||||
if [ $0 != "bash" ]
|
||||
if [[ ! $0 =~ \/?bash$ ]]
|
||||
then
|
||||
ynh_print_err --message="Please use Bash as shell"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Reference in a new issue