Fix syntax error in main-installer.sh
Fixed a syntax error in the update script setup section of main-installer.sh: - Fixed incorrect brace closure (using '}' instead of 'fi') - Fixed indentation for better code readability - Ensured proper nesting of if conditions - This should resolve the error during installation when copying module files 💡 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
5a1318bbf2
commit
f2b217ad84
@ -408,8 +408,8 @@ if [ ! -f "${SCRIPT_DIR}/scripts/update.sh" ]; then
|
|||||||
cp "${SCRIPT_DIR}/update.sh" "${SCRIPT_DIR}/scripts/update.sh"
|
cp "${SCRIPT_DIR}/update.sh" "${SCRIPT_DIR}/scripts/update.sh"
|
||||||
log "INFO" "Copied update script from root to scripts directory"
|
log "INFO" "Copied update script from root to scripts directory"
|
||||||
else
|
else
|
||||||
# Create the update script since it doesn't exist
|
# Create the update script since it doesn't exist
|
||||||
cat > "${SCRIPT_DIR}/scripts/update.sh" << 'EOL'
|
cat > "${SCRIPT_DIR}/scripts/update.sh" << 'EOL'
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Transmission RSS Manager - Update Script
|
# Transmission RSS Manager - Update Script
|
||||||
@ -496,10 +496,10 @@ echo -e "Updated from version $CURRENT_VERSION to $NEW_VERSION"
|
|||||||
echo -e "Changes will take effect immediately."
|
echo -e "Changes will take effect immediately."
|
||||||
EOL
|
EOL
|
||||||
|
|
||||||
chmod +x "${SCRIPT_DIR}/scripts/update.sh"
|
chmod +x "${SCRIPT_DIR}/scripts/update.sh"
|
||||||
log "INFO" "Created update script: ${SCRIPT_DIR}/scripts/update.sh"
|
log "INFO" "Created update script: ${SCRIPT_DIR}/scripts/update.sh"
|
||||||
fi
|
fi
|
||||||
}
|
fi
|
||||||
|
|
||||||
# Step 8: Final setup and permissions
|
# Step 8: Final setup and permissions
|
||||||
log "INFO" "Finalizing setup..."
|
log "INFO" "Finalizing setup..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user