(bash) test on behaviour of sourcing
This commit is contained in:
+6
-3
@@ -1,7 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if ! $(which $1 &>/dev/null); then
|
||||
if ! $(which navig &>/dev/null); then
|
||||
echo "command not found"
|
||||
else
|
||||
echo "$1 exists"
|
||||
return 1
|
||||
fi
|
||||
|
||||
function bash_source_test_function {
|
||||
echo "sourcing not interrupted"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user