File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 9
9
# option. This file may not be copied, modified, or distributed
10
10
# except according to those terms.
11
11
12
- set -u
13
-
14
- if [ -x /bin/echo ]; then
15
- ECHO=' /bin/echo'
16
- else
17
- ECHO=' echo'
18
- fi
12
+ set -ue
19
13
20
14
msg () {
21
15
echo " gen-installer: ${1-} "
@@ -296,9 +290,8 @@ for bulk_dir in $bulk_dirs; do
296
290
manifest=` echo " $manifest " | sed /^$bulk_dir /d`
297
291
done
298
292
299
- # Add 'file:' installation directives.
300
- # The -n prevents adding a blank file: if the manifest is empty
301
- manifest=` $ECHO -n " $manifest " | sed s/^/file:/`
293
+ # Add 'file:' installation directives, skipping empty lines.
294
+ manifest=` echo " $manifest " | sed /^$/d | sed s/^/file:/`
302
295
303
296
# Add 'dir:' directives
304
297
for bulk_dir in $bulk_dirs ; do
You can’t perform that action at this time.
0 commit comments