Set YNH_APP_BASEDIR as an absolute path

Ping @alexAubin :)
This commit is contained in:
Salamandar 2021-05-18 22:03:06 +02:00 committed by GitHub
parent 0f10b91fa1
commit 9c21fde52b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/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 # Handle script crashes / failures
# #