Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
xplshn committed Mar 1, 2024
1 parent 4632eb1 commit de78fc4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions stubdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

# TODO: put an IF to get AMD64 or arm64, OR return error

VERSION="1.3!"
BIGDL="https://github.com/xplshn/bigdl/releases/download/$VERSION/bigdl_amd64"
DEST="/tmp/._bdlstub_bigdl.bin"

if [ -f "$DEST" ]; then
"$DEST" "$@"
else
if command -v wget >/dev/null 2>&1; then
wget -q "$BIGDL" -O "$DEST"
elif command -v curl >/dev/null 2>&1; then
curl -qfsSL "$BIGDL" -o "$DEST"
fi
chmod +x "$DEST"
"$DEST" "$@"
fi

0 comments on commit de78fc4

Please sign in to comment.