diff .shell.d/00.path_manipulation.sh @ 490:10811c923fc0

path handling: stop warning when something isn't in a variable
author Augie Fackler <raf@durin42.com>
date Mon, 11 Jul 2016 14:54:41 -0400
parents c85072e620a8
children b0fa9e7cadac
line wrap: on
line diff
--- a/.shell.d/00.path_manipulation.sh
+++ b/.shell.d/00.path_manipulation.sh
@@ -29,8 +29,6 @@ function remove_element_from_var() {
     export $varname="`echo $varcontents | sed s%$newcomp:%%`"
   elif [[ "$varcontents" == "$newcomp" ]] ; then
     unset $varname
-  else
-    echo $1 not in $varname
   fi
 }