Skip to content

Commit

Permalink
[fetab] Get absolute path to file
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelRobitaille committed Oct 28, 2021
1 parent 42164b9 commit b1f0a19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/fetab
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ if [ "$filepath" = "." ]; then
filepath=$(pwd)
fi

filepath="$(readlink -f "$filepath")"

# If file given, open basename
if [ -f "$filepath" ]; then
filepath="$(basename $filepath)"
Expand Down

0 comments on commit b1f0a19

Please sign in to comment.