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
|
||||||
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
|
else
|
||||||
|
if [ "${ARCHIVE}" == "" ] ; then
|
||||||
|
tar xzvf "${FILE}"
|
||||||
|
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}"
|
||||||
|
|
Loading…
Reference in a new issue