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

print script while curl | bash #9

Open
lnee94 opened this issue Feb 9, 2023 · 2 comments
Open

print script while curl | bash #9

lnee94 opened this issue Feb 9, 2023 · 2 comments

Comments

@lnee94
Copy link

lnee94 commented Feb 9, 2023

curl https://repo.waydro.id | tee /dev/stderr | sudo bash
and like add to the begining of the script

echo "Press enter after you have read the code printed"
read
@lnee94
Copy link
Author

lnee94 commented Feb 9, 2023

Also, all code should be wrapped around a main function where the function gets called at the end of the script

@lnee94
Copy link
Author

lnee94 commented Feb 9, 2023

Or instead do curl https://repo.waydro.id | sed 'iread'| tee /dev/stderr | sudo bash
and make the read code message be a comment at the end #Press enter after you have read the code printed

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

1 participant