]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commit
xdg-ninja: security and readability fixes
authorAsperatus <thomas@ballasi.com>
Fri, 13 May 2022 18:07:17 +0000 (14:07 -0400)
committerb3nj5m1n <47924309+b3nj5m1n@users.noreply.github.com>
Fri, 13 May 2022 21:09:39 +0000 (23:09 +0200)
commita0c13c19b8deb711deafaaaa0d2dec1d5dea0e31
treeac5bdc99ccb84479f657201d0bcfba4914f9f039
parent9125c23023c8edb7f62eea198894cb78ef5aaf32
xdg-ninja: security and readability fixes

Here are the various fixes done:

- printf can interpret sequences, therefore you want to give variable as
  a different argument
- ! [ -z "$VAL" ] <=> [ -n "$VAL" ] <=> [ "$VAL" ]
- double quote on variables to prevent globbing and word splitting
xdg-ninja.sh