Chat GPT just saved me HOURS maybe days...

I was using CMD source /path/to/file/*.sh to source some scripts, and was getting an error.

found out that even though /bin/bash has access to the "source" command, /bin/sh does not, docker uses bin/sh not /bin/bash.

so replace "source" with "." and it works fine.

computers, pffff

Reply to this note

Please Login to reply.

Discussion

something else, sourcing with wildcard only sources the last file when * is expanded. You need a for loop and source each one.

I did lost a day or two on this as well, ChatGPT did not existby then :D