Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash code error #1

Open
HariKrishnaKumar opened this issue Jan 28, 2022 · 2 comments
Open

bash code error #1

HariKrishnaKumar opened this issue Jan 28, 2022 · 2 comments

Comments

@HariKrishnaKumar
Copy link

HariKrishnaKumar commented Jan 28, 2022

while executing bash command this error come :
$ install.sh: line 12: syntax error near unexpected token fi' 'nstall.sh: line 12: fi

if i run in root or non root the same error comes
if i try this command
$ chmod +x ./install.sh

it dose not show any arguments

so please help

@TesterHACK666
Copy link

cd black-tool then gedit install.sh change your line 12 to this "if" only :) but you will encounter another syntax :( idk what to do but I am still researching :) 👍

@hamo0ody
Copy link

I had the same issue
to fix the error, here's what you should do
run this command stackoverflow
sed $'s/\r$//' ./install.sh > ./install.Unix.sh

sudo bash install.Unix.sh

if you face another syntax error here's what you should do

I'm using Linux so this fix will work only for linux

gedit install.Unix.sh

remove this function from the file
function windows_installing() { printf '\033]2;Black-Tool/Windows/Installing\a' clear print "Enter Path: " read path echo "Setup..." cd Black-Tool/Windows && cp hack.py $path echo " Black-Tool Installed " }

and remove this one two
function termux_installing() { printf '\033]2;Black-Tool/Termux/Installing\a' clear echo "Installing..." sleep 1 printf "Enter Path: " read path sleep 1 cd Black-Tool/Termux && cp hack $path echo " Black-Tool Installed! " }

and remove this one two
function choose_os() { clear echo "" echo " █▄▄ █░░ ▄▀█ █▀▀ █▄▀ ▄▄ ▀█▀ █▀█ █▀█ █░░ v4.0.0" echo " █▄█ █▄▄ █▀█ █▄▄ █░█ ░░ ░█░ █▄█ █▄█ █▄▄" echo "" echo " Choose OS: {1}.Linux {2}.Windows {3}.Android {99}.Exit " printf "choose/> " read choose if [[ "$choose" == '1']]; then try1 elif [[ "$choose" == '2']]; then windows_installing elif [[ "$choose" == '3']]; then termux_installing elif [[ "$choose" == '99']]; then clear echo " Exiting... " exit else choose_os fi }

save the file and run it as root sudo bash install.Unix.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants