remaster/src/func/workspace_erase

16 lines
308 B
Plaintext
Raw Normal View History

#!/bin/bash
#remaster lib
[ -d "$LIBDR"] || export LIBDIR="/usr/lib/remaster/"
[ -d "$LIBDR"] || { echo "LIBDR not exist"; exit 1; }
#workspace_erase [workspace_path]
function workspace_erase() {
echo -n "erase workspace ... "
for dir in "$@"; do
[ -d "$dir" ] && rm -r -f "$dir"
done
echo "done"
}