Global Feed Post Login
Replying to Avatar Parman - Activate OP_GFY now!!

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

Avatar
Parman - Activate OP_GFY now!! 2y ago

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

Reply to this note

Please Login to reply.

Discussion

Avatar
roshii 2y ago

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

Thread collapsed