Skip to content

Instantly share code, notes, and snippets.

@Ch00k
Last active December 20, 2015 23:09
Show Gist options
  • Select an option

  • Save Ch00k/6210598 to your computer and use it in GitHub Desktop.

Select an option

Save Ch00k/6210598 to your computer and use it in GitHub Desktop.
requirements_solaris_check_custom()
{
[[ " ${packages_custom[*]} " =~ " $1 " ]] ||
[[ -x /opt/csw/bin/pkgutil && -f /etc/opt/csw/pkgutil.conf ]] ||
{
if [[ "$1" == "libyaml_dev" ]]
then
/opt/csw/bin/pkgutil | __rvm_grep "libyaml-dev" >/dev/null || packages_custom+=( "$1" )
else
/opt/csw/bin/pkgutil | __rvm_grep "$1" >/dev/null || packages_custom+=( "$1" )
fi
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment