aboutsummaryrefslogtreecommitdiff
path: root/scripts/embedded_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/embedded_scripts')
-rwxr-xr-xscripts/embedded_scripts6
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
24fi 24fi
25 25
26bzip2 </dev/null >/dev/null 26bzip2 </dev/null >/dev/null 2>&1
27if test $? != 0; then 27if test $? = 127; then
28 echo 'bzip2 is not installed' 28 echo 'bzip2 is not installed'
29 exit 1 29 exit 1
30fi 30fi
@@ -90,6 +90,7 @@ concatenate_scripts() {
90 done 90 done
91} 91}
92 92
93(
93exec >"$target.$$" 94exec >"$target.$$"
94 95
95if [ $n -ne 0 ] 96if [ $n -ne 0 ]
@@ -127,5 +128,6 @@ then
127 -e 's/$/ \\/' 128 -e 's/$/ \\/'
128 printf '\n' 129 printf '\n'
129fi 130fi
131)
130 132
131mv -- "$target.$$" "$target" 133mv -- "$target.$$" "$target"