]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Resolve symlink to script file
authorb3nj4m1n <b3nj4m1n@gmx.net>
Tue, 28 Jun 2022 10:23:57 +0000 (12:23 +0200)
committerb3nj4m1n <b3nj4m1n@gmx.net>
Tue, 28 Jun 2022 10:23:57 +0000 (12:23 +0200)
xdg-ninja.sh

index 9d0151705c055291b5b43dc72968f84c3e5c49f7..f8e12b55b5342c5392e0802b1c2b3e6e4e10b657 100755 (executable)
@@ -206,7 +206,7 @@ do_check_programs() {
 " read -r name; read -r filename; read -r movable; read -r help; do
         check_file "$name" "$filename" "$movable" "$help"
     done <<EOF
-$(jq 'inputs as $input | $input.files[] as $file | $input.name, $file.path, $file.movable, $file.help' "$(dirname "$0")"/programs/* | sed -e 's/^"//' -e 's/"$//')
+$(jq 'inputs as $input | $input.files[] as $file | $input.name, $file.path, $file.movable, $file.help' "$(realpath "$0" | dirname -)"/programs/* | sed -e 's/^"//' -e 's/"$//')
 EOF
 # sed is to trim quotes
 }