From 5087fb18635380f0b992330645ac8c157f6fa84e Mon Sep 17 00:00:00 2001 From: Hyacinthe Cartiaux Date: Thu, 24 Aug 2017 13:54:11 +0200 Subject: [PATCH] [bash] Hide an error message when ruby is not in the $PATH --- bash/bash_environment | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bash/bash_environment b/bash/bash_environment index effcd16..7482569 100644 --- a/bash/bash_environment +++ b/bash/bash_environment @@ -178,8 +178,15 @@ fi # RVM specific (see http://beginrescueend.com/) [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" || true -if [[ $(which ruby | grep -c "$HOME/.rvm" 2>/dev/null) != 0 ]] ; then +if [[ $(which ruby 2>/dev/null | grep -c "$HOME/.rvm") != 0 ]] ; then # Get off my lawn rvm reset fi +if [[ -d ~/repos/ulhpc_gitlab/ULHPC/sysadmins/scripts/idm ]] ; then + source ~/repos/ulhpc_gitlab/ULHPC/sysadmins/scripts/idm/ulhpc_user_ad_get_enddate.sh + source ~/repos/ulhpc_gitlab/ULHPC/sysadmins/scripts/idm/ulhpc_user_ldap_get_enddate.sh + source ~/repos/ulhpc_gitlab/ULHPC/sysadmins/scripts/idm/ulhpc_user_ldap_set_enddate.sh + source ~/repos/ulhpc_gitlab/ULHPC/sysadmins/scripts/idm/ulhpc_user_compare_enddate.sh +fi +