diff --git a/README.md b/README.md index 72517e0..14f6b32 100644 --- a/README.md +++ b/README.md @@ -67,9 +67,9 @@ curl -o install_vet.sh https://getvet.sh/install.sh ```bash curl -L -o install_vet.sh https://github.com/vet-run/vet/releases/latest/download/install.sh ``` -2. **Review the installer's code.** Open it in a text editor or use less to ensure it's not doing anything suspicious. It's a simple script that downloads the correct vet script and moves it to /usr/local/bin. +2. **Review the installer's code.** Open it in a text editor or use `less -U` to ensure it's not doing anything suspicious. It's a simple script that downloads the correct vet script and moves it to /usr/local/bin. ```bash -less install_vet.sh +less -U install_vet.sh ``` 3. **Run the installer you just vetted:** ```bash diff --git a/vet b/vet index 4c44e01..2b5e6a0 100755 --- a/vet +++ b/vet @@ -137,7 +137,7 @@ if [ -f "$CACHE_FILE_PATH" ]; then printf "[?] %sShow diff?%s [y/N] " "$C_BOLD" "$C_RESET" read -n 1 -r REPLY; echo if [[ "$REPLY" =~ ^[Yy]$ ]]; then - less "$TMPFILE_DIFF" + less -U "$TMPFILE_DIFF" fi fi fi @@ -184,7 +184,7 @@ if [ -t 0 ]; then if [ -n "$BAT_CMD" ]; then "$BAT_CMD" -l sh --paging=always "$TMPFILE" else - less "$TMPFILE" + less -U "$TMPFILE" fi fi printf "[?] %sExecute this script?%s [y/N] " "$C_BOLD" "$C_RESET"