init
This commit is contained in:
commit
6d87ac8ba1
139 changed files with 7604 additions and 0 deletions
16
bin/.bin/openlens.sh
Executable file
16
bin/.bin/openlens.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue