Skip to content

Instantly share code, notes, and snippets.

@b0o
Created December 9, 2023 23:45
Show Gist options
  • Save b0o/17ee3aeee33b92bc118d8639a5a31fce to your computer and use it in GitHub Desktop.
Save b0o/17ee3aeee33b92bc118d8639a5a31fce to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [[ ${1:-} == "--inner" ]]; then
echo "Inner"
exit 0
fi
echo "Outer"
echo "${BASH_SOURCE[0]}" | entr "${BASH_SOURCE[0]}" --inner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment