Merge pull request #1229 from Salamandar/patch-1

Set YNH_APP_BASEDIR as an absolute path
This commit is contained in:
Alexandre Aubin 2021-05-23 20:16:18 +02:00 committed by GitHub
commit 6ddc4b8cea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
#!/bin/bash
YNH_APP_BASEDIR=$([[ "$(basename $0)" =~ ^backup|restore$ ]] && echo '../settings' || echo '..')
YNH_APP_BASEDIR=$(realpath $([[ "$(basename $0)" =~ ^backup|restore$ ]] && echo '../settings' || echo '..'))
# Handle script crashes / failures
#