AutoYADM commit: 2025-04-23 00:00:05

This commit is contained in:
Daniel Fichtinger 2025-04-23 00:00:05 -04:00
parent d4227fa9ea
commit bdde475e59

View file

@ -1,14 +1,18 @@
function nv --description 'nvchecker script' function nv --description 'nvchecker script' -a cmd
nvchecker if test $cmd = show
echo Changes:\n cat ~/.config/nvchecker/new_ver.json
nvcmp else
echo \nDo you want to mark the updates as applied? nvchecker
set -l prompt Type UPDATE to run `nvtake`, anything else to quit': ' echo Changes:\n
read -l response --prompt-str="$prompt" nvcmp
# clear prompt echo \nDo you want to mark the updates as applied?
printf "\033[1A\033[2K" set -l prompt Type UPDATE to run `nvtake --all`, anything else to quit': '
printf "\033[1A\033[2K" read -l response --prompt-str="$prompt"
if test "$response" = UPDATE; or return 0 # clear prompt
nvtake printf "\033[1A\033[2K"
printf "\033[1A\033[2K"
if test "$response" = UPDATE; or return 0
nvtake --all
end
end end
end end