diff options
author | Simon Rettberg | 2019-03-15 10:27:20 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-15 10:27:20 +0100 |
commit | cd69c29733d65b6b5948a9cc9fb9e252653bc289 (patch) | |
tree | 4125aca5f3b40149ad6d0b4a6b9ab4ab491a4402 /README | |
parent | Simplify checks, consider zram as volatile too (diff) | |
download | slx-tools-cd69c29733d65b6b5948a9cc9fb9e252653bc289.tar.gz slx-tools-cd69c29733d65b6b5948a9cc9fb9e252653bc289.tar.xz slx-tools-cd69c29733d65b6b5948a9cc9fb9e252653bc289.zip |
Invert logic and use || for $x = ${x#<prefix>} checks
This makes it so that if $x starts with <prefix>, the statement
after the condition is executed, which seems easier to read.
i.e. [ "$x" = "${x#abc}" ] || echo "x starts with abc"
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions