From c1c8a58467316855e7065dac8aa5d98cfcee3b9b Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 11 Oct 2013 06:47:57 +0200 Subject: Remove obsolete construction [ x"$a" = x"$b" ] Cf. http://stackoverflow.com/questions/6852612/bash-test-for-empty-string-with-x --- partition.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/partition.sh b/partition.sh index 78cb55d..5118811 100755 --- a/partition.sh +++ b/partition.sh @@ -43,10 +43,10 @@ if [ $encrypt = true ]; then # depending on the architecture we're on; we use AES128 and SHA-256 # on 32-bits platforms, and AES256 and SHA-512 on 64-bits platforms. arch=$(uname -m) - if [ x"$arch" = x"x86_64" ]; then + if [ "$arch" = x86_64 ]; then keysize=256 hash=sha512 - elif [ x"$arch" = x"i386" -o x"$arch" = x"i686" ]; then + elif [ "$arch" = i386 -o "$arch" = i686 ]; then keysize=128 hash=sha256 fi -- cgit v1.2.3