Fixed bug on --rc case
This commit is contained in:
parent
6ae7ef48d0
commit
e18dcc28b5
1 changed files with 6 additions and 9 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue