Upd server

This commit is contained in:
2023-05-21 18:54:02 +02:00
parent 181289473b
commit 802de2a5bd
19 changed files with 284 additions and 75 deletions

26
Lib.sh
View File

@@ -11,6 +11,32 @@ mkcd(){
cd "$1"
}
CpItem(){
[ -f "${ScopePath}$1" ] && cpfile "$1"
[ -d "${ScopePath}$1" ] && cpdir "$1"
}
CpItems(){
for p in $@
do
CpItem "$p"
done
}
CpSub(){
LBase="$1"; shift
RBase="$1"; shift
for s in $@
do
CpItems ${LBase}${s}${RBase}
done
}
CpSufx(){
Base="$1"; shift
CpSub "$Base" "" $@
}
cpfile(){
echo "$1"
rm -rf "./$1" && \