Skip to content
Snippets Groups Projects
Commit ac21c0e8 authored by Elena Gryaznova's avatar Elena Gryaznova
Browse files

b=14384

i=Brian
assert_DIR cleanup
parent 1dc6122d
No related branches found
No related tags found
No related merge requests found
...@@ -27,12 +27,12 @@ assert_env() { ...@@ -27,12 +27,12 @@ assert_env() {
assert_DIR () { assert_DIR () {
local failed="" local failed=""
[ -z "`echo :$DIR: | grep :$MOUNT:`" ] && \ [[ $DIR/ = $MOUNT/* ]] || \
failed=1 && echo "DIR not in $MOUNT. Aborting." { failed=1 && echo "DIR=$DIR not in $MOUNT. Aborting."; }
[ -z "`echo :$DIR1: | grep :$MOUNT1:`" ] && \ [[ $DIR1/ = $MOUNT1/* ]] || \
failed=1 && echo "DIR1 not in $MOUNT1. Aborting." { failed=1 && echo "DIR1=$DIR1 not in $MOUNT1. Aborting."; }
[ -z "`echo :$DIR2: | grep :$MOUNT2:`" ] && \ [[ $DIR2/ = $MOUNT2/* ]] || \
failed=1 && echo "DIR2 not in $MOUNT2. Aborting" { failed=1 && echo "DIR2=$DIR2 not in $MOUNT2. Aborting"; }
[ -n "$failed" ] && exit 99 || true [ -n "$failed" ] && exit 99 || true
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment