新文件: tool/password-check/ss-certificate-passwd

修改:     tool/ssinstall
This commit is contained in:
2022-04-26 10:33:37 +08:00
parent 000fcf8c9d
commit 232fe777e5
2 changed files with 79 additions and 7 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
uname=`whoami`
echo "Now input the password of $uname"
read upass
passcheck=`echo "$upass" | sudo -S echo "i love amber forever"`
if [ "$passcheck" != "i love amber forever" ];then
echo "E:Wrong Password"
exit 1
else
echo "go go Baron Bunny"
fi