refactor(posix): remove cd output redirects - it has no output

This commit is contained in:
AJ ONeal
2022-08-21 08:01:37 +00:00
parent 184487e228
commit 76fc3bfefa
5 changed files with 9 additions and 9 deletions

View File

@@ -117,7 +117,7 @@ __webi_main() {
set -e
(
cd "\$WEBI_BOOT" > /dev/null 2>&1
cd "\$WEBI_BOOT"
sh "\$my_package-bootstrap.sh"
)

View File

@@ -2,7 +2,7 @@
# For installing from the extracted package tmp directory
pkg_install() {
(
cd "$WEBI_TMP" 2>&1 > /dev/null
cd "$WEBI_TMP"
if command -v rsync 2> /dev/null | grep -q rsync; then
rsync -Krl ./xmpl*/ "$pkg_src/" 2> /dev/null

View File

@@ -219,7 +219,7 @@ __bootstrap_webi() {
# detect which archives can be used
webi_extract() {
(
cd "$WEBI_TMP" > /dev/null 2>&1
cd "$WEBI_TMP"
if [ "tar" = "$WEBI_EXT" ]; then
echo "Extracting ${WEBI_PKG_PATH}/$WEBI_PKG_FILE"
tar xf "${WEBI_PKG_PATH}/$WEBI_PKG_FILE"
@@ -396,7 +396,7 @@ __bootstrap_webi() {
if [ -n "$(command -v pkg_pre_install)" ]; then pkg_pre_install; else webi_pre_install; fi
(
cd "$WEBI_TMP" > /dev/null 2>&1
cd "$WEBI_TMP"
echo "Installing to $pkg_src_cmd"
if [ -n "$(command -v pkg_install)" ]; then pkg_install; else webi_install; fi
chmod a+x "$pkg_src"
@@ -407,12 +407,12 @@ __bootstrap_webi() {
_webi_enable_exec
(
cd "$WEBI_TMP" > /dev/null 2>&1
cd "$WEBI_TMP"
if [ -n "$(command -v pkg_post_install)" ]; then pkg_post_install; else webi_post_install; fi
)
(
cd "$WEBI_TMP" > /dev/null 2>&1
cd "$WEBI_TMP"
if [ -n "$(command -v pkg_done_message)" ]; then pkg_done_message; else _webi_done_message; fi
)

View File

@@ -6,7 +6,7 @@ main() {
webi_download
(
cd ~/Downloads/webi 2>&1 > /dev/null
cd ~/Downloads/webi
if [ "Darwin" = "$(uname -s)" ]; then
curl -fsSL 'https://gist.githubusercontent.com/coolaj86/8c36d132250163011c83bad8284975ee/raw/5a291955813743c20c12ca2d35c7b1bb34f8aecc/create-bootable-installer-for-os-x-el-capitan.sh' -o create-bootable-installer-for-os-x-el-capitan.sh

View File

@@ -5,7 +5,7 @@ set -u
__rmrf_local() {
if [ -d "${HOME}/.local/opt" ]; then
(
cd "${HOME}/.local/opt" 2>&1 > /dev/null
cd "${HOME}/.local/opt"
rm -rf \
arc \
archiver \
@@ -98,7 +98,7 @@ __rmrf_local() {
#postgresql \
)
(
cd "${HOME}/.local/bin" 2>&1 > /dev/null
cd "${HOME}/.local/bin"
rm -f \
arc \
archiver \