revert "remove useless readlink"
This commit is contained in:
parent
423297501b
commit
0caaddbe64
2
generate
2
generate
@ -42,7 +42,7 @@ remove_wrkdir() {
|
|||||||
|
|
||||||
# change current directory to script directory if user haven't do it
|
# change current directory to script directory if user haven't do it
|
||||||
check_currentdir() {
|
check_currentdir() {
|
||||||
scriptdir=$(dirname "$0")
|
scriptdir=$(readlink -f $(dirname "$0"))
|
||||||
[ "$PWD" = "$scriptdir" ] || {
|
[ "$PWD" = "$scriptdir" ] || {
|
||||||
msg info "changing current directory to script directory"
|
msg info "changing current directory to script directory"
|
||||||
cd "$scriptdir" || msg panic "failed to change directory"
|
cd "$scriptdir" || msg panic "failed to change directory"
|
||||||
|
Loading…
Reference in New Issue
Block a user