All pastes #618220 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-07-13 20:33 UTC
rendered paste body
#!/usr/bin/env bash

clean() {
  printf "cleaning $2 \n"
  rm -rf ${1}
  for I in $(ls -d ${2}/* 2> /dev/null)
  do
    if [[ -d ${I} ]]
    then
      clean $1 "${I}"
    fi
  done
}

clean $1 .