Skip to content

Commit

Permalink
Update wombat_update.sh to fix updating past 31.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tcorbly authored Jan 25, 2025
1 parent 1c4df09 commit ab4bb23
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions wombat_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#######################################################################################################
# #
# Author: Tim Corbly, Erin Harrington #
# Date: 2024-11-19 #
# Date: 2025-01-24 #
# Description: Dummy Wombat update file for versions <= 30.3.0 #
# #
#######################################################################################################
Expand Down Expand Up @@ -41,11 +41,17 @@ fi


WOMBAT_OS="wombat-os"
WOMBAT_OS_NEW=$(find /media/kipr/*/wombat-os-31.0.0 -maxdepth 0 -type d 2>/dev/null)

# Check if wombat-os-31.0.0 directory exists
WOMBAT_OS_NEW=$(find /media/kipr/*/wombat-os-* -maxdepth 0 -type d -name 'wombat-os-*' 2>/dev/null | \
awk -F'wombat-os-' '
{
split($2, ver, ".");
if (ver[1] >= 31 && ver[2] >= 0 && ver[3] >= 0)
print $0
}')

# Check if wombat-os-31.0.0 or greater directory exists
if [ -z "$WOMBAT_OS_NEW" ]; then
echo "No wombat-os-31Update directory found. If you downloaded wombat-os v31.0.0, please make sure the folder is named 'wombat-os-31Update'."
echo "No wombat-os-31.0.0 or higher directory found. If you downloaded wombat-os v31.0.0 or higher, please make sure that the file has been extracted to your flash drive and that there is not a duplicate folder inside the extracted folder."
exit 1
fi

Expand Down Expand Up @@ -79,4 +85,3 @@ sudo chmod u+x wombat_update.sh && sudo /home/kipr/wombat-os/updateFiles/wombat_
echo "Update Failed"
exit 1
}

0 comments on commit ab4bb23

Please sign in to comment.