Browse Source

x230: upgrade: detect development version if version higher than release

pull/36/head
Martin Kepplinger 6 years ago
parent
commit
66ee6f8687
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      x230/upgrade.sh

+ 3
- 1
x230/upgrade.sh View File

@ -64,7 +64,7 @@ fi
if [[ "$CURRENT_VERSION" = "$UPSTREAM_VERSION" ]] ; then if [[ "$CURRENT_VERSION" = "$UPSTREAM_VERSION" ]] ; then
echo -e "${GREEN}You are using the latest version of Skulls for the X230${NC}" echo -e "${GREEN}You are using the latest version of Skulls for the X230${NC}"
exit 0 exit 0
else
elif [[ "$CURRENT_VERSION" < "$UPSTREAM_VERSION" ]] ; then
echo -e "${RED}You have ${CURRENT_VERSION} but there is version ${UPSTREAM_VERSION} available for the X230. Please update.${NC}" echo -e "${RED}You have ${CURRENT_VERSION} but there is version ${UPSTREAM_VERSION} available for the X230. Please update.${NC}"
read -r -p "Download it to the parent directory now? [y/N] " response read -r -p "Download it to the parent directory now? [y/N] " response
case "$response" in case "$response" in
@ -83,4 +83,6 @@ else
exit 0 exit 0
;; ;;
esac esac
else
echo "You seem to use a development version. Please use release package skulls-x230 ${UPSTREAM_VERSION} for flashing."
fi fi

Loading…
Cancel
Save