Misc updates

This commit is contained in:
2023-05-19 19:54:24 +02:00
parent ac6caf5fb9
commit 181289473b
10 changed files with 65 additions and 26 deletions

View File

@@ -5,14 +5,15 @@ CopyCfg() {
for Type in "" "."
do
[ "$(whoami)" = "root" ] && [ -d "$1/Root" ] && \
cp -r $(find "$1/Root" -maxdepth 1 -mindepth 1 -name "$Type*") /
[ -d "$1/Home" ] && \
cp -r $(find "$1/Home" -maxdepth 1 -mindepth 1 -name "$Type*") ~/
cp -r $(find "$1/Root" -maxdepth 1 -mindepth 1 -name "${Type}*") /
[ "$(whoami)" != "root" ] && [ -d "$1/Home" ] && \
cp -r $(find "$1/Home" -maxdepth 1 -mindepth 1 -name "${Type}*") ~/
# TODO: && cat all *.part.{head,tail} files into their respective one
done
}
Cur="$1"
while [ ! -z "$Cur" ]
while [ -n "$Cur" ]
do
if [ -d "$Cur" ]
then