Split main func (no os/proj dependency)

This commit is contained in:
6543
2018-04-30 18:57:01 +02:00
parent b5ab4f1ec9
commit f2b3b5f530
17 changed files with 432 additions and 327 deletions

15
src/func/workspace_erase Normal file
View File

@ -0,0 +1,15 @@
#!/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"
}