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"
|
||||
log "INFO" "Copied update script from root to scripts directory"
|
||||
else
|
||||
# Create the update script since it doesn't exist
|
||||
cat > "${SCRIPT_DIR}/scripts/update.sh" << 'EOL'
|
||||
# Create the update script since it doesn't exist
|
||||
cat > "${SCRIPT_DIR}/scripts/update.sh" << 'EOL'
|
||||
#!/bin/bash
|
||||
|
||||
# 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."
|
||||
EOL
|
||||
|
||||
chmod +x "${SCRIPT_DIR}/scripts/update.sh"
|
||||
log "INFO" "Created update script: ${SCRIPT_DIR}/scripts/update.sh"
|
||||
chmod +x "${SCRIPT_DIR}/scripts/update.sh"
|
||||
log "INFO" "Created update script: ${SCRIPT_DIR}/scripts/update.sh"
|
||||
fi
|
||||
}
|
||||
fi
|
||||
|
||||
# Step 8: Final setup and permissions
|
||||
log "INFO" "Finalizing setup..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user