How to source a remote Bash script correctly?

Published: 1/02/2018
How to source a remote Bash script correctly?
Source: UNIX.STACKEXCHANGE.COM

I use Bash 4.3.48(1) on a Ubuntu 16.04 (xenial) machine, hosted on DigitalOcean. The machine includes LEMP and is all default. I also hold my document root, in a variable, exported to all sessions: export drt="/var/www/html" The following remote Bash script, installs phpmyadmin and I desire to source it directly form Bash: #!/bin/bash find ${drt}/ -type f -iname "*phpmyadmin*" -exec rm -rf {}

Read more
Related news
Comment
FACEBOOK