Skip to content

Commit

Permalink
v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DocDrydenn committed Jan 22, 2022
1 parent f49e0a7 commit 4eb7164
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions omsa_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ DEBUG=0

# Script Update Function
self_update() {
echo "2. Script Updates:"
echo "1. Self-Update:"
cd "$SCRIPTPATH"
timeout 1s git fetch --quiet
timeout 1s git diff --quiet --exit-code "origin/$BRANCH" "$SCRIPTFILE"
Expand All @@ -39,6 +39,7 @@ self_update() {
exit 1
}
echo " ✓ Version: Current."
echo
}

# Error Trapping with Cleanup Function
Expand Down Expand Up @@ -101,9 +102,6 @@ usage_example() {
# Error Trap
trap 'errexit' ERR

# Self Update
self_update

# Parse Commandline Arguments
([ "$1" = "-h" ] || [ "$1" = "h" ]) && usage_example
([ "$2" = "-h" ] || [ "$2" = "h" ]) && usage_example
Expand All @@ -115,6 +113,9 @@ self_update
inoutheader
inoutfooter

# Self Update
self_update

#===========================================================================================================================================
### Start Phase 1
PHASE="Old_OMSA_Purge"
Expand Down

0 comments on commit 4eb7164

Please sign in to comment.