init
This commit is contained in:
commit
9f1862f150
8 changed files with 56 additions and 0 deletions
5
subdir/called.sh
Executable file
5
subdir/called.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
echo "Hi, this is called"
|
||||
echo "\${0}: ${0}"
|
||||
pwd
|
||||
echo "Good bye"
|
||||
exit 1
|
11
subdir/entry.sh
Executable file
11
subdir/entry.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/env bash
|
||||
set -euo pipefail
|
||||
echo "Hi, this is entry.sh"
|
||||
echo "pwd:"
|
||||
pwd
|
||||
echo "\${0}: ${0}"
|
||||
cd "$(dirname "${0}")"
|
||||
./called.sh
|
||||
echo $?
|
||||
echo "returned"
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue