diff options
-rwxr-xr-x | partition.sh | 4 |
1 files 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 |