Skip to content

Commit

Permalink
feat: realpath()'d $d
Browse files Browse the repository at this point in the history
This may be useful in case of some new FHS ideas being applied and "." being used in the PATH.
  • Loading branch information
takusuman committed Mar 29, 2024
1 parent 2aa6bb3 commit 542a699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-system/tasks/check_dependencies.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function check_dependencies {
if [[ ! -e "$tar_cmd" || "$d" == "${tarpath%/*}" ]]; then
continue
elif ($tar_cmd --help 2>&1| egrep 'star|bsdtar|GNU' 2>&1 >/dev/null); then
new_tarpath="$d"
new_tarpath="$(realpath $d)"
tmpPATH="$new_tarpath:$PATH"
# This big chunk of code works as a 'uniq'
# for the PATH variable because, since
Expand Down

0 comments on commit 542a699

Please sign in to comment.