view clearCache.sh @ 39:b5d56f522ea3

error handling
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 11 Jul 2020 21:39:52 -0600
parents 7ecd1a4ef557
children
line wrap: on
line source

#!/bin/bash
 
set -e

cd `dirname $0`

mkdir -p local/cache
mv local/cache local/cache.old
rm -rf local/cache.old &

echo "cache cleared";