Skip to content

Commit 207fc85

Browse files
committed
fix(base): pipefail error
1 parent 58c4972 commit 207fc85

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

debootstrap/bullseye/rootfs/usr/bin/init-stack

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
env_list=$(find /opt/drycc/*/env/* 2>/dev/null)
3+
env_list=$(find /opt/drycc/*/env/* 2>/dev/null || echo "")
44
for env in ${env_list}
55
do
66
key=$(echo "${env}" | awk -F "/" '{print $NF}')
@@ -9,7 +9,7 @@ do
99
export "${key}=${value}"
1010
done
1111

12-
env_launch_list=$(find /opt/drycc/*/env.launch/* 2>/dev/null)
12+
env_launch_list=$(find /opt/drycc/*/env.launch/* 2>/dev/null || echo "")
1313
for env in ${env_launch_list}
1414
do
1515
key=$(echo "${env}" | awk -F "/" '{print $NF}')
@@ -18,14 +18,14 @@ do
1818
export "${key}=${value}"
1919
done
2020

21-
profile_list=$(find /opt/drycc/*/profile.d/* 2>/dev/null)
21+
profile_list=$(find /opt/drycc/*/profile.d/* 2>/dev/null || echo "")
2222
for profile in ${profile_list}
2323
do
2424
# shellcheck source=/dev/null
2525
. "${profile}"
2626
done
2727

28-
exec_list=$(find /opt/drycc/*/exec.d/* 2>/dev/null)
28+
exec_list=$(find /opt/drycc/*/exec.d/* 2>/dev/null) || echo ""
2929
for _exec in ${exec_list}
3030
do
3131
"${_exec}"

0 commit comments

Comments
 (0)