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