Updated to return a false message when the mark is not in the marks list
This commit is contained in:
1 parent
a88c50569c
commit
849bc2a133
1 file changed
+2
Regular → Executable
+2
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user