appdwarf/apps/getapp

8 lines
153 B
Bash
Executable file

#!/bin/sh
set -e # exit on failure
IFS=$(printf '\n\t') # smarter ifs
gh run download -n "$1"
chmod +x "$1"
mv "$1" "$(dirname "$(realpath "$0")")/bin"