mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-06-21 18:33:34 +02:00
Fix bash scripts
Fix bash scripts Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
@ -28,7 +28,7 @@ if ! command -v tar &> /dev/null; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "${CMAKE_VERSION}" == "" ]]; then
|
||||
if [[ -z "${CMAKE_VERSION}" ]]; then
|
||||
echo >&2 'error: CMAKE_VERSION env. variable must be set to a non-empty value'
|
||||
exit 1
|
||||
fi
|
||||
@ -45,10 +45,10 @@ curl --connect-timeout 30 \
|
||||
--retry-max-time 30 \
|
||||
-# -LO $url
|
||||
|
||||
tar -xzvf ${CMAKE_ROOT}.tar.gz
|
||||
rm -f ${CMAKE_ROOT}.tar.gz
|
||||
tar -xzvf "${CMAKE_ROOT}.tar.gz"
|
||||
rm -f "${CMAKE_ROOT}.tar.gz"
|
||||
|
||||
cd ${CMAKE_ROOT}
|
||||
cd "${CMAKE_ROOT}"
|
||||
|
||||
rm -rf doc man
|
||||
rm -rf bin/cmake-gui
|
||||
|
Reference in New Issue
Block a user