mirror of
https://github.com/hackerschoice/segfault.git
synced 2024-06-26 00:38:36 +00:00
no NULL
This commit is contained in:
parent
5433b0fea4
commit
47d285a3d2
2
Makefile
2
Makefile
@ -15,7 +15,6 @@ all:
|
||||
docker pull crazymax/cloudflared
|
||||
|
||||
FILES_GUEST += "segfault-$(VER)/guest/setup.sh"
|
||||
FILES_GUEST += "segfault-$(VER)/guest/pkg-install.sh"
|
||||
FILES_GUEST += "segfault-$(VER)/guest/Dockerfile"
|
||||
FILES_GUEST += "segfault-$(VER)/guest/Makefile"
|
||||
FILES_GUEST += "segfault-$(VER)/guest/fs-root/usr/sbin/halt"
|
||||
@ -27,6 +26,7 @@ FILES_GUEST += "segfault-$(VER)/guest/fs-root/etc/zsh_command_not_found"
|
||||
FILES_GUEST += "segfault-$(VER)/guest/fs-root/etc/proxychains.conf"
|
||||
FILES_GUEST += "segfault-$(VER)/guest/fs-root/sf/bin/sf-motd.sh"
|
||||
FILES_GUEST += "segfault-$(VER)/guest/fs-root/sf/bin/sf-setup.sh"
|
||||
FILES_GUEST += "segfault-$(VER)/guest/fs-root/sf/bin/pkg-install.sh"
|
||||
FILES_GUEST += "segfault-$(VER)/guest/fs-root/etc/rc.local-example"
|
||||
FILES_GUEST += "segfault-$(VER)/guest/fs-root/etc/vim/vimrc.local"
|
||||
FILES_GUEST += "segfault-$(VER)/guest/fs-root/etc/apt/apt.conf.d/01norecommend"
|
||||
|
@ -19,7 +19,7 @@ ghbin()
|
||||
asset="$3"
|
||||
|
||||
loc="https://api.github.com/repos/"$loc"/releases/latest"
|
||||
url=$(curl -SsfL "$loc" | jq -r '[.assets[] | select(.name|match("'"$regex"'"))][0] | .browser_download_url')
|
||||
url=$(curl -SsfL "$loc" | jq -r '[.assets[] | select(.name|match("'"$regex"'"))][0] | .browser_download_url | select( . != null )')
|
||||
[[ -z "$url" ]] && { echo >&2 "URL: '$loc'"; return 255; }
|
||||
case $url in
|
||||
*.zip)
|
||||
|
Loading…
Reference in New Issue
Block a user