mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-03-03 01:40:17 +00:00
15 lines
434 B
Bash
15 lines
434 B
Bash
# For installing from the extracted package tmp directory
|
|
pkg_install() {
|
|
pushd "$WEBI_TMP" 2>&1 >/dev/null
|
|
|
|
if [ -n "$(command -v rsync 2>/dev/null | grep rsync)" ]; then
|
|
rsync -Krl ./xmpl*/ "$pkg_new_opt/" 2>/dev/null
|
|
else
|
|
cp -Hr ./xmpl*/* "$pkg_new_opt/" 2>/dev/null
|
|
cp -Hr ./xmpl*/.* "$pkg_new_opt/" 2>/dev/null
|
|
fi
|
|
rm -rf ./xmpl*
|
|
|
|
popd 2>&1 >/dev/null
|
|
}
|