working directory defined
This commit is contained in:
parent
e31ed82c06
commit
ed1293c988
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user