Skip to content

Instantly share code, notes, and snippets.

@yeputons
Created July 20, 2015 20:29
Show Gist options
  • Save yeputons/2d3320b923c133c48e5d to your computer and use it in GitHub Desktop.
Save yeputons/2d3320b923c133c48e5d to your computer and use it in GitHub Desktop.
Asana/travis-cache-check clone
sudo: false
cache:
directories:
- cache1
- cache2
script:
- bash doit.sh
#!/bin/bash
rm -rf cache*
#!/bin/bash
for dir in cache{1,2}; do
if [ -d $dir ]; then
echo $dir - ok
else
echo $dir - creating
mkdir $dir
fi
file=$dir/file
if [ -e $file ]; then
echo $file - ok
else
echo $file - creating
touch $file
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment