#!/bin/bash echo "" #echo "Number of new Build" #echo "https://github.com/louislam/uptime-kuma/releases" #echo -n "> " #read newv newv=$(curl -s https://api.github.com/repos/louislam/uptime-kuma/releases/latest|grep tag_name | cut -d '"' -f 4|sed 's/v//g') cd uptime-kuma # Update from git git fetch --all git checkout $newv --force # Install dependencies and prebuilt npm install --omit=dev npm run download-dist # Restart pm2 restart uptime-kuma