Skip to content

Commit

Permalink
added user-input.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
vikas99341 authored Jul 21, 2022
1 parent a71e446 commit ece9a80
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Shell-Script/user-input.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

echo "Enter username"
read username

echo "Enter password"
read password

if [[ ( $username == "admin" && $password == "pass123" ) ]];
then
echo "Valid credentials"
else
echo "Invalid credentials"
fi

0 comments on commit ece9a80

Please sign in to comment.