My first thought was to use the environment variables in shell.
That didn’t work: zsh only provides
$CPUTYPE, bash only provides
More portable way is to use
# works with both bash / zsh case $(uname -m) in # i686) : ;; x86_64) : ;; esac case $(uname -s) in Linux) # what can it be? : ;; Darwin) # OSX : ;; esac