Files
toybox-bash/teste.sh
SyntaxError a0c376a238 Added script
2025-12-11 20:42:59 -03:00

16 lines
282 B
Bash
Executable File

#!/bin/bash
detect_distro() {
for f in /etc/*release; do
[ -f "$f" ] || continue
. "$f"
echo "$NAME"
return 0
done
echo "toybox.sh - detect_distro: ${RED}NotFound${NC}: Could not detect distribution name."
exit 127
}
detect_distro