Updated to return a false message when the mark is not in the marks list

This commit is contained in:
Mzwagerman committed 2011-03-04 15:22:40 -05:00
1 parent a88c50569c
commit 849bc2a133
1 file changed
+2
Regular → Executable
+2
View File
@@ -36,6 +36,8 @@ function mark()
local mark_dir=$(grep "^$mark_name:" ${MARKS_FILE} | sed -e 's/[^:]*://') local mark_dir=$(grep "^$mark_name:" ${MARKS_FILE} | sed -e 's/[^:]*://')
if [[ "$mark_dir" != "" ]]; then if [[ "$mark_dir" != "" ]]; then
cd "$mark_dir" cd "$mark_dir"
else
echo "\`$mark_name' is NOT in mark list!"
fi fi
;; ;;
-s) -s)