typo: used both [ ] and test in shell script
This commit is contained in:
parent
a142565e7f
commit
123b255809
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user