Simplify YNH_APP_BASEDIR definition

Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
Alexandre Aubin 2021-09-19 20:46:32 +02:00 committed by GitHub
parent 991eea447c
commit e7844ef09e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,6 @@
#!/bin/bash
if [ -z "${YNH_APP_BASEDIR:-}" ];
then
echo -e "YNH_APP_BASEDIR is not defined, many helpers use it, please define it!" >&2
YNH_APP_BASEDIR=$(realpath ..)
fi
YNH_APP_BASEDIR=${YNH_APP_BASEDIR:-$(realpath ..)}
# Handle script crashes / failures
#