My build of nnn with minor changes
25'ten fazla konu seçemezsiniz
Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
|
- #!/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
|