Configs/Install.sh
octt ac6caf5fb9 Update 3 files
- /README.md
- /Install.sh
- /RemoteInstall.sh
2023-05-17 14:31:25 +00:00

25 lines
450 B
Bash
Executable File

#!/bin/sh
cd "$( dirname "$( realpath "$0" )" )"
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*") ~/
done
}
Cur="$1"
while [ ! -z "$Cur" ]
do
if [ -d "$Cur" ]
then
echo "$Cur"
CopyCfg "$Cur"
fi
shift > /dev/null 2>&1 || Cur=""
Cur="$1"
done