mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-03-05 19:00:21 +00:00
20 lines
414 B
Bash
20 lines
414 B
Bash
#!/bin/sh
|
|
set -e
|
|
set -u
|
|
|
|
# For installing from the extracted package tmp directory
|
|
pkg_install() {
|
|
(
|
|
cd "$WEBI_TMP"
|
|
|
|
if command -v rsync 2> /dev/null | grep -q rsync; then
|
|
rsync -Krl ./xmpl*/ "$pkg_src/" 2> /dev/null
|
|
else
|
|
cp -Hr ./xmpl*/* "$pkg_src/" 2> /dev/null
|
|
cp -Hr ./xmpl*/.* "$pkg_src/" 2> /dev/null
|
|
fi
|
|
rm -rf ./xmpl*
|
|
|
|
)
|
|
}
|