fix: whitespace, version bump for earlier commit
This commit is contained in:
+4
-4
@@ -77,14 +77,14 @@ if [[ -x "$(command -v $SCRIPT_NAME)" ]]; then
|
||||
fi
|
||||
|
||||
[[ ! -f "$game_dir/mods.csv" ]] && { echo -e "${RED}Error:${NC} mods.csv not found in $game_dir."; exit 1; }
|
||||
|
||||
|
||||
# make backup of mods in case something goes wrong
|
||||
echo "${ORANGE}V${NC} It is advised to make a backup before proceeding."
|
||||
h2mm export
|
||||
|
||||
# iterate from installed major number to latest major number
|
||||
for ((i = installed_major + 1; i <= latest_major; i++)); do
|
||||
if [[ -n "${breaking_changes_patches[$i]}" ]]; then
|
||||
if [[ -n "${breaking_changes_patches[$i]}" ]]; then
|
||||
eval $(echo "${breaking_changes_patches[$i]}" | sed "s:\$1:$game_dir:")
|
||||
else
|
||||
echo "No breaking changes for version $i."
|
||||
@@ -92,7 +92,7 @@ if [[ -x "$(command -v $SCRIPT_NAME)" ]]; then
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo -ne "${RED}Error:${NC} Failed to apply breaking changes patch for version $i. Do you want to continue? (Y/n): "
|
||||
read -er response
|
||||
|
||||
|
||||
[[ "$response" != "y" && "$response" != "Y" && -n "$response" ]] && { echo "Exiting. Uninstall the script first the retry the install script."; exit 1; }
|
||||
else
|
||||
echo -e "Breaking changes patch for version ${ORANGE}$i${NC} applied ${GREEN}successfully${NC}."
|
||||
@@ -135,7 +135,7 @@ else
|
||||
fi
|
||||
|
||||
echo "Installing $SCRIPT_NAME to $DESTINATION_PATH."
|
||||
sudo curl "$REPO_URL"/h2mm --output "$DESTINATION_PATH/$SCRIPT_NAME"
|
||||
sudo curl "$REPO_URL"/h2mm --output "$DESTINATION_PATH/$SCRIPT_NAME"
|
||||
sudo chmod +x "$DESTINATION_PATH/$SCRIPT_NAME"
|
||||
|
||||
if [[ ! -x "$(command -v $SCRIPT_NAME)" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user