This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# @author literallylara | |
# USE AT YOUR OWN RISK! | |
# Inspired by https://gist.github.com/guitarrapc/2623623a0e1bc7fe86b5cf56e0c70d88 | |
set -e # Exit on error | |
set -u # Treat unset variables as an error | |
MAX_DEPTH=-1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
query="$1" | |
debug="$2" | |
if [ -z "$query" ]; then | |
echo "Usage: $(basename "$0") <query> [debug]" | |
exit 1 | |
fi |