Skip to content

Instantly share code, notes, and snippets.

@morentharia
Last active January 25, 2022 18:28
Show Gist options
  • Save morentharia/48fb68cdd3cfac636938c9caeb8741fa to your computer and use it in GitHub Desktop.
Save morentharia/48fb68cdd3cfac636938c9caeb8741fa to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
version="0.0.1"
# os="Linux"
os="MacOs"
mkdir -p "/tmp/zlo-$version"
cd "/tmp/zlo-$version"
curl -OL "https://github.com/morentharia/gozlochromeext/releases/download/v$version/gozlochromeext$os" || exit 1
curl -OL "https://github.com/morentharia/gozlodeistva/releases/download/release-$version/gozlo$os" || exit 1
curl -OL "https://github.com/morentharia/gozlochromeext/archive/refs/tags/v$version.tar.gz" || exit 1
tar -zxvf "v$version.tar.gz" "gozlochromeext-$version/chrome.extension/" || exit 1
mv -f "./gozlo$os" ./gozlo || exit 1
mv -f "./gozlochromeext$os" ./gozlochromeext || exit 1
cp -rf "./gozlochromeext-$version/chrome.extension" ./chrome-extension || exit 1
rm -rf "./gozlochromeext-$version" || exit 1
rm -rf "./v$version.tar.gz" || exit 1
chmod +x gozlochromeext || exit 1
chmod +x gozlo || exit 1
ls -l
echo "Install extension: /tmp/zlo-$version/chrome.extension"
echo "and press any key..."
while [ true ] ; do
read -t 3 -n 1
if [ $? = 0 ] ; then
break;
fi
done
# {sleep 5;./gozlo checkcheck}&
# ./gozlochromeext -addr=127.0.0.1:1337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment