changeset 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 29680270d3fd
children 4b2472372fad
files .shell.d/00.path_manipulation.sh
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
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
 }