diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2013-10-11 06:47:57 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 04:27:38 +0200 |
commit | c1c8a58467316855e7065dac8aa5d98cfcee3b9b (patch) | |
tree | 5a5bbb492c4a8ba371bd52b4e1d17cf48073f503 | |
parent | bc706d9745c72c3051117641dc90f22856d5075b (diff) |
Remove obsolete construction [ x"$a" = x"$b" ]
Cf. http://stackoverflow.com/questions/6852612/bash-test-for-empty-string-with-x
-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 |