Skip to content

Commit

Permalink
update check root
Browse files Browse the repository at this point in the history
  • Loading branch information
lazypwny751 committed Mar 19, 2021
1 parent 9d9fb66 commit 2c22846
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions bchacktool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ if [[ $1 =~ ^(-h|--help|-y|--yardım) ]] ; then
echo -e "$cyan Developper $white : $red https://github.com/lazypwny751$tp"
exit 0
fi
if [[ $USER = "root" ]] ; then
echo "ok" &> /dev/null
else
echo -e "$red sudo bash bchacktool.sh${tp} İle Deneyiniz.!"
exit 1
fi

[ $UID != 0 ] && { echo -e "${red}Lütfen${tp} '${blue}sudo bash $0${tp}'${tp} olarak tekrar çalıştırınız${red}" ; exit 1 ; }

if [[ $1 =~ ^(-v|--version) ]] ; then
echo "$version"
elif [[ $1 =~ ^(-s|--sil) ]] ; then
Expand Down

1 comment on commit 2c22846

@genfox27
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

çalışıyormu

Please sign in to comment.