appdwarf/apps/getapp

9 lines
198 B
Bash
Executable file

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