]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Fix dirname invocation v0.2.0.1
authorb3nj4m1n <b3nj4m1n@gmx.net>
Tue, 28 Jun 2022 10:45:34 +0000 (12:45 +0200)
committerb3nj4m1n <b3nj4m1n@gmx.net>
Tue, 28 Jun 2022 10:45:34 +0000 (12:45 +0200)
xdg-ninja.sh

index f8e12b55b5342c5392e0802b1c2b3e6e4e10b657..ed0e8ddda2766f13de74dc9e4fe1dc00618d5db0 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
 " 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' "$(realpath "$0" | dirname -)"/programs/* | sed -e 's/^"//' -e 's/"$//')
+$(jq 'inputs as $input | $input.files[] as $file | $input.name, $file.path, $file.movable, $file.help' "$(realpath "$0" | xargs dirname)"/programs/* | sed -e 's/^"//' -e 's/"$//')
 EOF
 # sed is to trim quotes
 }
 EOF
 # sed is to trim quotes
 }