This commit is contained in:
Mariano Z. 2025-04-21 12:07:24 -03:00
commit 6d87ac8ba1
Signed by: marianozunino
GPG key ID: 4C73BAD25156DACE
139 changed files with 7604 additions and 0 deletions

16
bin/.bin/openlens.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
bin=~/.bin/openlens
repo=MuhammedKalkan/OpenLens
# if redis binary is not found, download it
if [ ! -f $bin ]; then
echo "Downloading openlens binary..."
filename=$(curl -s https://api.github.com/repos/$repo/releases/latest | jq -r '.assets[].name' | grep "x86_64.AppImage$")
fileurl=$(curl -s https://api.github.com/repos/$repo/releases/latest | jq -r --arg filename $filename '.assets[] | select(.name == $filename) | .browser_download_url')
wget -q -O $bin $fileurl
chmod +x $bin
fi
# execute leapp
$bin -f -i $1 -o $2