Update 3 files

- /README.md
- /Install.sh
- /RemoteInstall.sh
This commit is contained in:
octt
2023-05-17 14:31:25 +00:00
parent f7f581ddb6
commit ac6caf5fb9
3 changed files with 36 additions and 2 deletions

View File

@ -4,8 +4,10 @@ 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*") ~/
[ "$(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
}