diff options
author | Dave Woodfall <dave@slackbuilds.org> | 2021-03-06 13:33:29 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-03-13 09:02:37 +0700 |
commit | ebb4b062e6f05a19399cf4a6fe6b3088a22ece19 (patch) | |
tree | cc5eec6edc7b2ca15a3047b65e7c5cb5905c0a5b | |
parent | 1b88911d4156ca5c439f383942ec6991fbc65da9 (diff) |
development/ShellCheck-bin: Simplify ARCH kicker.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | development/ShellCheck-bin/ShellCheck-bin.SlackBuild | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/development/ShellCheck-bin/ShellCheck-bin.SlackBuild b/development/ShellCheck-bin/ShellCheck-bin.SlackBuild index bafddd7f8e39..b6cd1f574c98 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 |