From af19aa150298d1c4073984aec27c2bca623fab29 Mon Sep 17 00:00:00 2001 From: illiliti Date: Wed, 12 Feb 2020 05:05:53 +0300 Subject: [PATCH] remove useless readlink --- generate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate b/generate index ddc97ea..687ca90 100755 --- a/generate +++ b/generate @@ -45,7 +45,7 @@ remove_tmpdir() { # change current directory to script directory if user haven't do it check_currentdir() { - script_dir=$(dirname $(readlink -f "$0")) + script_dir=$(dirname "$0") [ "$PWD" = "$script_dir" ] || { msg info "changing directory to script dir" cd "$script_dir" || msg panic "failed to change directory"