diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-02 11:08:30 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-02 11:08:30 -0500 |
commit | 315ce2397efab99a8a15cd2bb73367b00f178418 (patch) | |
tree | d9798c354440ce542c2a9c5e1b93024ee56df99e /versioncheck.sh | |
parent | e8c0f5a1a0d7ccee510fa59e577cccd46d68e3f8 (diff) |
Use if [[ ... ]] instead of [ ... ] and change retval check in setupdisk when checking exit code when creating partition.
Diffstat (limited to 'versioncheck.sh')
-rwxr-xr-x | versioncheck.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/versioncheck.sh b/versioncheck.sh index 27c113b..3b83d81 100755 --- a/versioncheck.sh +++ b/versioncheck.sh @@ -12,9 +12,9 @@ echo -n "Binutils: " ld --version | head -n1 | cut -d" " -f3- bison --version | head -n1 -if [ -h /usr/bin/yacc ]; then +if [[ -h /usr/bin/yacc ]]; then echo "/usr/bin/yacc -> $(readlink -f /usr/bin/yacc)" -elif [ -x /usr/bin/yacc ]; then +elif [[ -x /usr/bin/yacc ]]; then echo yacc is "$(/usr/bin/yacc --version | head -n1)" else echo "yacc not found" @@ -27,9 +27,9 @@ diff --version | head -n1 find --version | head -n1 gawk --version | head -n1 -if [ -h /usr/bin/awk ]; then +if [[ -h /usr/bin/awk ]]; then echo "/usr/bin/awk -> $(readlink -f /usr/bin/awk)" -elif [ -x /usr/bin/awk ]; then +elif [[ -x /usr/bin/awk ]]; then echo awk is "$(/usr/bin/awk --version | head -n1)" else echo "awk not found" @@ -52,7 +52,7 @@ makeinfo --version | head -n1 # texinfo version xz --version | head -n1 echo 'int main(){}' >dummy.c && g++ -o dummy dummy.c -if [ -x dummy ]; then +if [[ -x dummy ]]; then echo "g++ compilation OK" else echo "g++ compilation failed"; fi rm -f dummy.c dummy |