working directory defined

This commit is contained in:
pavel.muhortov 2023-01-07 09:03:18 +03:00
parent e31ed82c06
commit ed1293c988

View File

@ -47,7 +47,7 @@ checkroot() {
show=${1}
conf=${2}
if [ -z "${conf}" ] || [ "${conf}" == "-" ];then
conf=$(dirname $(realpath $0))/$(basename -s .sh $0).conf
conf="$(dirname $(realpath "$0"))/$(basename -s .sh $0).conf"
fi
#
@ -55,6 +55,7 @@ fi
#
time=$(date +%s)
cd "$(dirname "$(realpath "$0")")"
if [ ! -e ${conf} ];then
:
else