(bash) test on behaviour of sourcing

This commit is contained in:
scbj
2025-06-23 10:55:58 +02:00
parent 9b426e85e0
commit 2b52a3d949
+6 -3
View File
@@ -1,7 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if ! $(which $1 &>/dev/null); then if ! $(which navig &>/dev/null); then
echo "command not found" echo "command not found"
else return 1
echo "$1 exists"
fi fi
function bash_source_test_function {
echo "sourcing not interrupted"
}