[Tests] die() in tests should quote "$@" for echo

This commit is contained in:
Peter Dave Hello authored and Jordan Harband committed 2016-11-07 03:34:36 +08:00
1 parent 24f8ae5c46
commit f7763c8ba9
135 files changed
+135 -135

No files matched your search

@@ -1,6 +1,6 @@
#!/bin/sh
die () { echo $@ ; exit 1; }
die () { echo "$@" ; exit 1; }
echo '0.10.1' > ../../alias/default || die 'creation of default alias failed'
@@ -1,6 +1,6 @@
#!/bin/sh
die () { echo $@ ; exit 1; }
die () { echo "$@" ; exit 1; }
supports_source_options () {
[ "_$(echo 'echo $1' | . /dev/stdin yes)" = "_yes" ]
}
@@ -1,7 +1,7 @@
#!/bin/sh
\. ../common.sh
die () { echo $@ ; exit 1; }
die () { echo "$@" ; exit 1; }
supports_source_options () {
[ "_$(echo 'echo $1' | . /dev/stdin yes)" = "_yes" ]
}
@@ -1,6 +1,6 @@
#!/bin/sh
die () { echo $@ ; exit 1; }
die () { echo "$@" ; exit 1; }
supports_source_options () {
[ "_$(echo 'echo $1' | . /dev/stdin yes)" = "_yes" ]
}
@@ -1,6 +1,6 @@
#!/bin/sh
die () { echo $@ ; exit 1; }
die () { echo "$@" ; exit 1; }
touch ../../alias/default
rm ../../alias/default || die 'removal of default alias failed'