summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2021-03-06 13:33:29 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-03-13 09:02:37 +0700
commitebb4b062e6f05a19399cf4a6fe6b3088a22ece19 (patch)
treecc5eec6edc7b2ca15a3047b65e7c5cb5905c0a5b /development
parent1b88911d4156ca5c439f383942ec6991fbc65da9 (diff)
downloadslackbuilds-ebb4b062e6f05a19399cf4a6fe6b3088a22ece19.tar.gz
development/ShellCheck-bin: Simplify ARCH kicker.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/ShellCheck-bin/ShellCheck-bin.SlackBuild16
1 files changed, 6 insertions, 10 deletions
diff --git a/development/ShellCheck-bin/ShellCheck-bin.SlackBuild b/development/ShellCheck-bin/ShellCheck-bin.SlackBuild
index bafddd7f8e..b6cd1f574c 100644
--- a/development/ShellCheck-bin/ShellCheck-bin.SlackBuild
+++ b/development/ShellCheck-bin/ShellCheck-bin.SlackBuild
@@ -28,23 +28,19 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i586 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
+ ARCH=$( uname -m )
fi
-CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
if [ "$ARCH" != "x86_64" ]; then
echo "$ARCH is not supported."
exit 1
fi
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
set -e
rm -rf $PKG