home | list info | list archive | date index | thread index

Re: update all git repos

Great, thanks.

On 2021-02-16 7:43 p.m., Dianne Skoll wrote:
On Tue, 16 Feb 2021 19:33:34 -0500
James <bjlockie [ at ] lockie [ dot ] ca> wrote:

$ find /hdd-storage/storage/programming/ -maxdepth 1 -type d -exec
"cd {}; git pull" \;
"cd" is a shell builtin.  You can't exec it as a program.

Try:

find /hdd-storage/storage/programming -type d -maxdepth 1 -exec /bin/bash -c 'cd {} && git pull' \;

Regards,

Dianne.

To unsubscribe send a blank message to linux+unsubscribe [ at ] linux-ottawa [ dot ] org
To get help send a blank message to linux+help [ at ] linux-ottawa [ dot ] org
To visit the archives: https://lists.linux-ottawa.org



To unsubscribe send a blank message to linux+unsubscribe [ at ] linux-ottawa [ dot ] org
To get help send a blank message to linux+help [ at ] linux-ottawa [ dot ] org
To visit the archives: https://lists.linux-ottawa.org

references

message navigation