diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-02-15 16:31:56 +0100 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-02-15 16:47:43 +0100 | 
| commit | 3b2a78935fd6550521f719a10e5b0fceb1ddb350 (patch) | |
| tree | 7c50801d6bb5b7abba3df6352ed43df454a4dbcb /bin/common/autofetch | |
Not really but, First commit!
Diffstat (limited to 'bin/common/autofetch')
| -rwxr-xr-x | bin/common/autofetch | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/common/autofetch b/bin/common/autofetch new file mode 100755 index 0000000..3dcdc15 --- /dev/null +++ b/bin/common/autofetch @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +GREEN='\033[0;32m' +NC='\033[0m' +# Fetches for git repos, meant to run at startup +for directory in "." "installdrier" ".config" ".password-store" +do +    if cd ~/$directory +    then +        echo -ne "Fetching in ${GREEN}'~/${directory}'${NC}" +        git fetch origin || exit 1 +        echo ", done." +    fi +done  | 
