@aliss@outerheaven.club that's not bad, except you have a mismatch between ID and dist
I'd probably do something likegetopts 'd...' # ...
d) dist="$OPTARG" ;; # ....
if [ -z "$dist" ] && [ -f /etc/os-release ]; then
. /etc/os-release
dist="${ID_LIKE:-$ID}"
fiAs one side-note, if this was bash, you could avoid additional leakage using my upvar by slapping the then into a subshell that you source ?
Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
Tosti ? (tost@mk.toast.cafe)'s status on Wednesday, 21-Sep-2022 09:35:25 JSTTosti ?