Skip to content

Instantly share code, notes, and snippets.

@evandrocoan
Created August 21, 2020 01:11
Show Gist options
  • Save evandrocoan/0625199dd0b9e666d502476ade9eacb9 to your computer and use it in GitHub Desktop.
Save evandrocoan/0625199dd0b9e666d502476ade9eacb9 to your computer and use it in GitHub Desktop.
#!/bin/bash

cd /myfiles

while true;
do
    sleep_time=10
    pwd;
    printf 'Sleeping "%s" seconds...\n' "${sleep_time}";
    sleep ${sleep_time};

    printf 'Running git clone...\n' "${sleep_time}";
    git clone something;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment