remove useless readlink

This commit is contained in:
illiliti 2020-02-12 05:05:53 +03:00
parent 678724a2b6
commit af19aa1502

View File

@ -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"