]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
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)
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


No differences found