[fix] YNH_APP_BASEDIR may not exist, set -eu etc

This commit is contained in:
Alexandre Aubin 2021-09-17 22:23:08 +02:00 committed by GitHub
parent c20ac160cc
commit 991eea447c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
#!/bin/bash
if [ -z "$YNH_APP_BASEDIR" ];
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 ..)