diff options
| author | 2019-04-18 20:27:35 +0530 | |
|---|---|---|
| committer | 2019-04-18 20:32:53 +0530 | |
| commit | 5cf34717161bd866a634d8a9ad209afb4004857b (patch) | |
| tree | e63a1f4849c7ebb7658725a4369caa48a0710af4 /user-scripts/upgrade | |
| parent | 12ce9451ee1c24ad245d33e8944ba77a1108b5b2 (diff) | |
| download | nnn-5cf34717161bd866a634d8a9ad209afb4004857b.tar.gz | |
Plugins!
Diffstat (limited to 'user-scripts/upgrade')
| -rwxr-xr-x | user-scripts/upgrade | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/user-scripts/upgrade b/user-scripts/upgrade deleted file mode 100755 index 83b9949..0000000 --- a/user-scripts/upgrade +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env sh - -# Description: Check and update to latest version of nnn manually on Debian 9 Stretch -# -# Shell: POSIX-compliant -# Author: Arun Prakash Jana -# NOTE: This script installs a package, should be issued with admin privilege - -cur=`nnn -v` -new=`curl -s "https://github.com/jarun/nnn/releases/latest" | grep -Eo "[0-9]+\.[0-9]+"` - -if [ $cur_ver == $new_ver ]; then - echo 'Already at latest version' - exit 0 -fi - -# get the package -wget "https://github.com/jarun/nnn/releases/download/v$new/nnn_$new-1_debian9.amd64.deb" - -# install it -sudo dpkg -i nnn_$new-1_debian9.amd64.deb - -# remove the file -rm -rf nnn_$new-1_debian9.amd64.deb |