bash resources

set_cache, a workaround to bundlers. Use CLEAR_FILE to prevent accidental sed overwrites. Replace all query string numbers with $1 arg to set_cache.

set_cache(){
     
     CLEAR_FILE=./.safe_set_cache
     if test -f "$CLEAR_FILE"; then
         find  . -type f -exec sed -i 's/cache_bust = [0-9]/cache_bust = '$1'/g' {} \;         
         find  . -type f -exec sed -i 's/\?v=[0-9]/?v='$1'/g' {} \;
     else
         echo "invalid set_cache dir - .safe_set_cache required"
     fi
 }
oko
friend