mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-10 08:54:54 +00:00
11 lines
386 B
Bash
Executable file
11 lines
386 B
Bash
Executable file
#!/bin/bash
|
|
if ! grep https <<< "$1"; then
|
|
set -- "https://github.com/$1"
|
|
fi
|
|
LINK2="$(echo $1/releases | sed 's|github.com|api.github.com/repos|')"
|
|
if ! grep github.com <<< "$1"; then
|
|
LINK2="$(curl "$1" | grep -o https.\*releases | sed 's|github.com|api.github.com/repos|')"
|
|
fi
|
|
LINK3="$(curl "$LINK2" | grep -v arm64 | grep -om1 https.\*AppImage)"
|
|
appdwarf "${@:2}" -u "$LINK3"
|