typo: used both [ ] and test in shell script
This commit is contained in:
parent
a142565e7f
commit
123b255809
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
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."
|
echo "Cannot detect the current directory, the environment variable PWD is empty."
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user