define a default YNH_APP_BASEDIR

This commit is contained in:
Kay0u 2021-09-17 18:47:47 +02:00
parent c1eecd5eb3
commit efdd287bff
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -1,5 +1,11 @@
#!/bin/bash
if [ -z "$YNH_APP_BASEDIR" ];
then
ynh_print_warn --message="YNH_APP_BASEDIR is not defined, many helpers use it, please define it!"
YNH_APP_BASEDIR=$(realpath ..)
fi
# Handle script crashes / failures
#
# [internal]