From d276c17a5c9117694217cbb8ac9c0d96ab870394 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 1 Jun 2019 17:42:37 -0300 Subject: Run read with -r flag (linter offense) Taken from: https://github.com/koalaman/shellcheck/wiki/SC2162 --- public/nixos/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/nixos/install.sh') diff --git a/public/nixos/install.sh b/public/nixos/install.sh index 5e160da..e690f01 100755 --- a/public/nixos/install.sh +++ b/public/nixos/install.sh @@ -123,9 +123,9 @@ green "Done." yellow "Generating password-hash.txt file for user login..." while true; do - read -s -p "Password: " password + read -r -s -p "Password: " password echo - read -s -p "Password (again): " password_confirmation + read -r -s -p "Password (again): " password_confirmation echo [ "$password" = "$password_confirmation" ] && break red "Please try again" -- cgit v1.2.3