2d05767193012e6eb2b57b07e99c6086cc4e8c7b
Changed the script to run as a regular user instead of requiring sudo. The script now: - Checks that it's NOT being run as root (prevents sudo usage) - Uses sudo for individual commands that need elevated privileges - Prompts for sudo password only when needed Changes: - Removed EUID check that required running with sudo - Added check to prevent running as root - Added sudo to backup operations (mkdir, cp, file writes) - All systemctl and npm install commands already use sudo appropriately This matches the behavior of install_kiosk scripts which should be run as a regular user, not with sudo. Usage: ./update_electron.sh (not sudo ./update_electron.sh)
Languages
Shell
94.1%
JavaScript
4.7%
HTML
0.9%
CSS
0.3%