mirror of
https://github.com/apache/superset.git
synced 2026-07-28 17:42:40 +00:00
Compare commits
2 Commits
ci/fronten
...
fix/resolv
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46c2c9c48f | ||
|
|
801baf0a0a |
@@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
# or more contributor license agreements. See the NOTICE file
|
# or more contributor license agreements. See the NOTICE file
|
||||||
# distributed with this work for additional information
|
# distributed with this work for additional information
|
||||||
@@ -15,8 +17,6 @@
|
|||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Function to determine Python command
|
# Function to determine Python command
|
||||||
get_python_command() {
|
get_python_command() {
|
||||||
if command -v python3 &>/dev/null; then
|
if command -v python3 &>/dev/null; then
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ RESET='\033[0m'
|
|||||||
echo -e "${GREEN}Updating package lists...${RESET}"
|
echo -e "${GREEN}Updating package lists...${RESET}"
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
|
|
||||||
echo -e "${GREEN}Installing packages: $@${RESET}"
|
echo -e "${GREEN}Installing packages: $*${RESET}"
|
||||||
apt-get install -yqq --no-install-recommends "$@"
|
apt-get install -yqq --no-install-recommends "$@"
|
||||||
|
|
||||||
echo -e "${GREEN}Autoremoving unnecessary packages...${RESET}"
|
echo -e "${GREEN}Autoremoving unnecessary packages...${RESET}"
|
||||||
|
|||||||
@@ -163,10 +163,10 @@ do
|
|||||||
# Iterate through the components of the version strings
|
# Iterate through the components of the version strings
|
||||||
for (( j=0; j<${#THIS_TAG_NAME_ARRAY[@]}; j++ )); do
|
for (( j=0; j<${#THIS_TAG_NAME_ARRAY[@]}; j++ )); do
|
||||||
echo "Comparing ${THIS_TAG_NAME_ARRAY[$j]} to ${LATEST_RELEASE_TAG_ARRAY[$j]}"
|
echo "Comparing ${THIS_TAG_NAME_ARRAY[$j]} to ${LATEST_RELEASE_TAG_ARRAY[$j]}"
|
||||||
if [[ $((THIS_TAG_NAME_ARRAY[$j])) > $((LATEST_RELEASE_TAG_ARRAY[$j])) ]]; then
|
if [[ $((THIS_TAG_NAME_ARRAY[$j])) -gt $((LATEST_RELEASE_TAG_ARRAY[$j])) ]]; then
|
||||||
compare_result="greater"
|
compare_result="greater"
|
||||||
break
|
break
|
||||||
elif [[ $((THIS_TAG_NAME_ARRAY[$j])) < $((LATEST_RELEASE_TAG_ARRAY[$j])) ]]; then
|
elif [[ $((THIS_TAG_NAME_ARRAY[$j])) -lt $((LATEST_RELEASE_TAG_ARRAY[$j])) ]]; then
|
||||||
compare_result="lesser"
|
compare_result="lesser"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ acquire_rat_jar () {
|
|||||||
wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR"
|
wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR"
|
||||||
else
|
else
|
||||||
printf "You do not have curl or wget installed, please install rat manually.\n"
|
printf "You do not have curl or wget installed, please install rat manually.\n"
|
||||||
exit -1
|
exit 255
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ acquire_rat_jar () {
|
|||||||
# We failed to download
|
# We failed to download
|
||||||
rm "$JAR"
|
rm "$JAR"
|
||||||
printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n"
|
printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n"
|
||||||
exit -1
|
exit 255
|
||||||
fi
|
fi
|
||||||
printf "Done downloading.\n"
|
printf "Done downloading.\n"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -163,10 +163,10 @@ do
|
|||||||
# Iterate through the components of the version strings
|
# Iterate through the components of the version strings
|
||||||
for (( j=0; j<${#THIS_TAG_NAME_ARRAY[@]}; j++ )); do
|
for (( j=0; j<${#THIS_TAG_NAME_ARRAY[@]}; j++ )); do
|
||||||
echo "Comparing ${THIS_TAG_NAME_ARRAY[$j]} to ${LATEST_RELEASE_TAG_ARRAY[$j]}"
|
echo "Comparing ${THIS_TAG_NAME_ARRAY[$j]} to ${LATEST_RELEASE_TAG_ARRAY[$j]}"
|
||||||
if [[ $((THIS_TAG_NAME_ARRAY[$j])) > $((LATEST_RELEASE_TAG_ARRAY[$j])) ]]; then
|
if [[ $((THIS_TAG_NAME_ARRAY[$j])) -gt $((LATEST_RELEASE_TAG_ARRAY[$j])) ]]; then
|
||||||
compare_result="greater"
|
compare_result="greater"
|
||||||
break
|
break
|
||||||
elif [[ $((THIS_TAG_NAME_ARRAY[$j])) < $((LATEST_RELEASE_TAG_ARRAY[$j])) ]]; then
|
elif [[ $((THIS_TAG_NAME_ARRAY[$j])) -lt $((LATEST_RELEASE_TAG_ARRAY[$j])) ]]; then
|
||||||
compare_result="lesser"
|
compare_result="lesser"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user