${OSTYPE} で判定すればよい。
case ${OSTYPE} in
darwin*)
# setting for mac
;;
linux*)
# setting for linux
;;
esac
More than 5 years have passed since last update.
${OSTYPE} で判定すればよい。
case ${OSTYPE} in
darwin*)
# setting for mac
;;
linux*)
# setting for linux
;;
esac
Register as a new user and use Qiita more conveniently