typo: used both [ ] and test in shell script

This commit is contained in:
Georges Dupéron 2019-06-14 00:44:55 +02:00
parent a142565e7f
commit 123b255809

View File

@ -1,6 +1,6 @@
#!/bin/sh
set -e
if [ test "x$PWD" = "x" ]; then
if test "x$PWD" = "x"; then
echo "Cannot detect the current directory, the environment variable PWD is empty."
exit 1
else