diff options
Diffstat (limited to 'scripts/embedded_scripts')
-rwxr-xr-x | scripts/embedded_scripts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/embedded_scripts b/scripts/embedded_scripts index 205ac591a..88c3a13cb 100755 --- a/scripts/embedded_scripts +++ b/scripts/embedded_scripts | |||
@@ -23,8 +23,8 @@ if test $? != 0; then | |||
23 | exit 1 | 23 | exit 1 |
24 | fi | 24 | fi |
25 | 25 | ||
26 | bzip2 </dev/null >/dev/null | 26 | bzip2 </dev/null >/dev/null 2>&1 |
27 | if test $? != 0; then | 27 | if test $? = 127; then |
28 | echo 'bzip2 is not installed' | 28 | echo 'bzip2 is not installed' |
29 | exit 1 | 29 | exit 1 |
30 | fi | 30 | fi |
@@ -90,6 +90,7 @@ concatenate_scripts() { | |||
90 | done | 90 | done |
91 | } | 91 | } |
92 | 92 | ||
93 | ( | ||
93 | exec >"$target.$$" | 94 | exec >"$target.$$" |
94 | 95 | ||
95 | if [ $n -ne 0 ] | 96 | if [ $n -ne 0 ] |
@@ -127,5 +128,6 @@ then | |||
127 | -e 's/$/ \\/' | 128 | -e 's/$/ \\/' |
128 | printf '\n' | 129 | printf '\n' |
129 | fi | 130 | fi |
131 | ) | ||
130 | 132 | ||
131 | mv -- "$target.$$" "$target" | 133 | mv -- "$target.$$" "$target" |