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

b=14384

i=Brian
assert_DIR cleanup
parent c2b64c99
No related branches found
No related tags found
No related merge requests found
...@@ -31,12 +31,12 @@ assert_env() { ...@@ -31,12 +31,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