mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Simplify YNH_APP_BASEDIR definition
Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
parent
991eea447c
commit
e7844ef09e
1 changed files with 1 additions and 5 deletions
|
@ -1,10 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -z "${YNH_APP_BASEDIR:-}" ];
|
YNH_APP_BASEDIR=${YNH_APP_BASEDIR:-$(realpath ..)}
|
||||||
then
|
|
||||||
echo -e "YNH_APP_BASEDIR is not defined, many helpers use it, please define it!" >&2
|
|
||||||
YNH_APP_BASEDIR=$(realpath ..)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Handle script crashes / failures
|
# Handle script crashes / failures
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue