mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-06-05 21:59:36 +02:00
Misc updates
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user