File tree 1 file changed +9
-3
lines changed 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,9 @@ updatever() {
108
108
109
109
cleanup () {
110
110
# shellcheck disable=SC2317
111
- [ -n " ${INSTALLKERNEL_STAGING_AREA} " ] && rm -rf " ${INSTALLKERNEL_STAGING_AREA} "
111
+ if [ -n " ${INSTALLKERNEL_STAGING_AREA} " ]; then
112
+ rm -rf " ${INSTALLKERNEL_STAGING_AREA} "
113
+ fi
112
114
}
113
115
114
116
trap cleanup EXIT
@@ -205,8 +207,12 @@ uki=${INSTALLKERNEL_STAGING_AREA}/uki.efi
205
207
206
208
# Copy kernel and prebuilt initrd, uki.efi at kernel location
207
209
cp " ${img} " " ${kernel} "
208
- [ -f " ${prebuilt_initrd} " ] && cp " ${prebuilt_initrd} " " ${initrd} "
209
- [ -f " ${prebuilt_uki} " ] && cp " ${prebuilt_uki} " " ${uki} "
210
+ if [ -f " ${prebuilt_initrd} " ]; then
211
+ cp " ${prebuilt_initrd} " " ${initrd} "
212
+ fi
213
+ if [ -f " ${prebuilt_uki} " ]; then
214
+ cp " ${prebuilt_uki} " " ${uki} "
215
+ fi
210
216
211
217
# If installing in the usual directory, run the same scripts that hook
212
218
# into kernel package installation. Also make sure the PATH includes
You can’t perform that action at this time.
0 commit comments