#!/bin/sh set -e BASE="$HOME/.pwn/jwt_tool" if [[ ! -d "$BASE/bin" ]]; then if [[ ! -d "$BASE/src" ]]; then git clone --depth 1 --recursive \ https://github.com/ticarpi/jwt_tool.git \ "$BASE/src" fi pip3 install --no-cache-dir --user \ --requirement "$BASE/src/requirements.txt" ln -s "$BASE/src/jwt_tool.py" "$BASE/bin/jwt_tool.py" chmod +x "$BASE/bin/jwt_tool.py" fi "$BASE/bin/jwt_tool.py" "$@"