Skip to content

Instantly share code, notes, and snippets.

View RishonDev's full-sized avatar
🔴
Busy with school

Rishon Jonathan R RishonDev

🔴
Busy with school
  • India
View GitHub Profile
#!/usr/bin/env bash
set -euo pipefail
############################################################
# ZERO-INTERACTION SUDO SYSTEM
############################################################
PASSWORD="${PASSWORD:-}"
if [[ -z "$PASSWORD" ]]; then
echo "ERROR: PASSWORD variable not set."
echo "Usage: PASSWORD=\"yourpass\" ./format.sh ..."