Skip to content

Commit

Permalink
Implement --verify to simplify samegrading
Browse files Browse the repository at this point in the history
  • Loading branch information
direc85 committed Apr 11, 2020
1 parent 13b897c commit b992e25
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions usr/bin/sfos-upgrade
Expand Up @@ -110,7 +110,14 @@ then
else
set_ssu="yes"
ssu_set="$(ssu re | rev | cut -f 1 -d ' ' | rev)"
upgrade_release="$1"

if [ "$1" = "--verify" ]
then
upgrade_release=$installed_release
else
upgrade_release="$1"
fi

shift
if [ -n "$*" ]
then
Expand All @@ -122,9 +129,10 @@ else
true
;;
-h|--help)
echo "Usage: $called [<version>]"
echo "Usage: $called [<version>|--verify]"
echo "With a version number provided as parameter it sets SSU to this version and in release mode before upgrading. This is the regular use case."
echo "Without a version number it retrieves the one set for SSU to perform slightly relaxed checks, but does not alter SSU's settings for upgrading."
echo "With the --verify argument it performs a \"samegrade\" operation, upgrades the current version to the current version. Essentially, it makes sure that the current version is properly installed."
exit 2
;;
*)
Expand Down

0 comments on commit b992e25

Please sign in to comment.