Fixed bug on --rc case

This commit is contained in:
dbroqua 2020-05-05 16:34:12 +02:00
parent 6ae7ef48d0
commit e18dcc28b5

View file

@ -79,12 +79,6 @@ else
fi fi
fi fi
echo INFO: ${INFO}
echo KERNEL: ${KERNEL}
echo URL: ${URL}
echo EXTENSION: ${EXTENSION}
echo FILE: ${FILE}
# Directory to store tmp files # Directory to store tmp files
DIR="/usr/src/${KERNEL}" DIR="/usr/src/${KERNEL}"
@ -120,11 +114,14 @@ fi
# Extract kernel archive # Extract kernel archive
if [ "${EXTENSION}" == '.tar.xz' ] ; then if [ "${EXTENSION}" == '.tar.xz' ] ; then
tar xavf "${FILE}" tar xavf "${FILE}"
isPreviousStepOk else
if [ "${ARCHIVE}" == "" ] ; then
tar xzvf "${FILE}"
else else
tar xzvf "${ARCHIVE}" -C ${DIR} tar xzvf "${ARCHIVE}" -C ${DIR}
isPreviousStepOk
fi fi
fi
isPreviousStepOk
# Enter kernel directory # Enter kernel directory
cd "linux-${KERNEL}" cd "linux-${KERNEL}"