# HG changeset patch # User Augie Fackler # Date 1468263281 14400 # Node ID 10811c923fc065e35b2dd59e485df8c02fdfee02 # Parent 29680270d3fdd0afa2df5c607eda61f00f92b024 path handling: stop warning when something isn't in a variable diff --git a/.shell.d/00.path_manipulation.sh b/.shell.d/00.path_manipulation.sh --- 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 }