summaryrefslogtreecommitdiffstats
path: root/source/a/tar/tar.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/tar/tar.SlackBuild')
-rwxr-xr-xsource/a/tar/tar.SlackBuild20
1 files changed, 1 insertions, 19 deletions
diff --git a/source/a/tar/tar.SlackBuild b/source/a/tar/tar.SlackBuild
index 3b21c7a8b..6c97c24e6 100755
--- a/source/a/tar/tar.SlackBuild
+++ b/source/a/tar/tar.SlackBuild
@@ -51,25 +51,7 @@ TMP=${TMP:-/tmp}
PKG=$TMP/package-tar
# Don't use icecream:
-for path_element in $(echo $PATH | tr ':' '\n') ; do
- if [ "$path_element" = "/usr/libexec/icecc/bin" ]; then
- continue
- fi
- if [ -z "$REVERSE_PATH" ]; then
- REVERSE_PATH="$path_element"
- else
- REVERSE_PATH="${REVERSE_PATH}:$path_element"
- fi
-done
-for path_element in $(echo $REVERSE_PATH | tr ':' '\n') ; do
- if [ -z "$FORWARD_PATH" ]; then
- FORWARD_PATH="$path_element"
- else
- FORWARD_PATH="${FORWARD_PATH}:$path_element"
- fi
-done
-PATH=$FORWARD_PATH
-unset FORWARD_PATH REVERSE_PATH
+PATH=$(echo $PATH | sed "s|/usr/libexec/icecc/bin||g" | tr -s : | sed "s/^://g" | sed "s/:$//g")
rm -rf $PKG
mkdir -p $TMP $PKG