remove useless readlink
This commit is contained in:
parent
678724a2b6
commit
af19aa1502
2
generate
2
generate
@ -45,7 +45,7 @@ remove_tmpdir() {
|
|||||||
|
|
||||||
# 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() {
|
||||||
script_dir=$(dirname $(readlink -f "$0"))
|
script_dir=$(dirname "$0")
|
||||||
[ "$PWD" = "$script_dir" ] || {
|
[ "$PWD" = "$script_dir" ] || {
|
||||||
msg info "changing directory to script dir"
|
msg info "changing directory to script dir"
|
||||||
cd "$script_dir" || msg panic "failed to change directory"
|
cd "$script_dir" || msg panic "failed to change directory"
|
||||||
|
Loading…
Reference in New Issue
Block a user