remaster/src/func/workspace_erase

16 lines
311 B
Plaintext
Raw Normal View History

#!/bin/bash
#remaster lib
2018-05-06 17:26:21 +00:00
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
[ -d "$LIBDIR"] || { echo "LIBDIR 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"
}