File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,15 @@ DEB_PATH="${TMP_PATH}/${DEB_NAME}"
1010EXTRACT_PATH=" ${TMP_PATH} /src/bzimage-archive"
1111BZIMAGE_PATH=" ${EXTRACT_PATH} /boot/vmlinuz-5.10.0-30-amd64"
1212SCRIPTPATH=" $( cd " $( dirname " $0 " ) " > /dev/null 2>&1 ; pwd -P ) "
13+ DEST_PATH=" ${SCRIPTPATH} /../src/loader/bzimage/bzimage"
1314
14- mkdir -p ${EXTRACT_PATH}
15+ if [ ! -f ${DEST_PATH} ]; then
16+ mkdir -p ${EXTRACT_PATH}
1517
16- curl $DEB_URL -o ${DEB_PATH}
17- dpkg-deb -x ${DEB_PATH} ${EXTRACT_PATH}
18+ curl $DEB_URL -o ${DEB_PATH}
19+ dpkg-deb -x ${DEB_PATH} ${EXTRACT_PATH}
1820
19- mv ${BZIMAGE_PATH} " ${SCRIPTPATH} /../src/loader/bzimage/bzimage"
20- rm -r ${EXTRACT_PATH}
21- rm -f ${DEB_PATH}
21+ mv ${BZIMAGE_PATH} ${DEST_PATH}
22+ rm -r ${EXTRACT_PATH}
23+ rm -f ${DEB_PATH}
24+ fi
You can’t perform that action at this time.
0 commit comments