AutoYADM commit: 2025-04-23 00:00:05
This commit is contained in:
parent
d4227fa9ea
commit
bdde475e59
1 changed files with 16 additions and 12 deletions
|
@ -1,14 +1,18 @@
|
||||||
function nv --description 'nvchecker script'
|
function nv --description 'nvchecker script' -a cmd
|
||||||
|
if test $cmd = show
|
||||||
|
cat ~/.config/nvchecker/new_ver.json
|
||||||
|
else
|
||||||
nvchecker
|
nvchecker
|
||||||
echo Changes:\n
|
echo Changes:\n
|
||||||
nvcmp
|
nvcmp
|
||||||
echo \nDo you want to mark the updates as applied?
|
echo \nDo you want to mark the updates as applied?
|
||||||
set -l prompt Type UPDATE to run `nvtake`, anything else to quit': '
|
set -l prompt Type UPDATE to run `nvtake --all`, anything else to quit': '
|
||||||
read -l response --prompt-str="$prompt"
|
read -l response --prompt-str="$prompt"
|
||||||
# clear prompt
|
# clear prompt
|
||||||
printf "\033[1A\033[2K"
|
printf "\033[1A\033[2K"
|
||||||
printf "\033[1A\033[2K"
|
printf "\033[1A\033[2K"
|
||||||
if test "$response" = UPDATE; or return 0
|
if test "$response" = UPDATE; or return 0
|
||||||
nvtake
|
nvtake --all
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue