Don't Use [[ in Shell Scripts

This commit is contained in:
W. Felix Handte 2020-05-18 14:54:06 -04:00
parent e804567d75
commit d37fcf36eb

View File

@ -267,7 +267,7 @@ test ! -f precompressedFilterTestDir/input.5.zst.zst
test ! -f precompressedFilterTestDir/input.6.zst.zst
file1timestamp=`$MTIME precompressedFilterTestDir/input.5.zst`
file2timestamp=`$MTIME precompressedFilterTestDir/input.7.zst`
if [[ $file2timestamp -ge $file1timestamp ]]; then
if [ $file2timestamp -ge $file1timestamp ]; then
println "Test is successful. input.5.zst is precompressed and therefore not compressed/modified again."
else
println "Test is not successful"