You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
410 B
22 lines
410 B
#!/bin/bash |
|
#remaster lib |
|
[ -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 |
|
|
|
#lxc |
|
[ -d /var/lib/lxc/_remaster_/ ] && rm -R /var/lib/lxc/_remaster_/ |
|
|
|
echo "done" |
|
} |
|
|
|
#this func is standalone executable |
|
[ -n "$1" ] && { |
|
workspace_erase $@ |
|
}
|
|
|