cleanup: shfmt, shellcheck, and whitespace
[webi-installers/.git] / _webi / example_install_safe_copy.sh
index c52b018f028fa72f97b618524316476d59c0e150..e1600bb5822d1ead28eb31851681aebb3a9fbd62 100644 (file)
@@ -1,14 +1,14 @@
 # For installing from the extracted package tmp directory
 pkg_install() {
-    pushd "$WEBI_TMP" 2>&1 >/dev/null
+    pushd "$WEBI_TMP" 2>&1 > /dev/null
 
-        if [ -n "$(command -v rsync 2>/dev/null | grep 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*
+    if [ -n "$(command -v rsync 2> /dev/null | grep 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*
 
-    popd 2>&1 >/dev/null
+    popd 2>&1 > /dev/null
 }