• Trailblazing Braille Taser@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    3 months ago

    This would work if you had a script called http://mysite.net. Here’s how you fix it:

    $ cat <<EOF
    #!/bin/bash
    curl https://mysite.net
    EOF > http://mysite.net
    $ chmod +x http://mysite.net
    $ http://mysite.net | sudo bash