Compare commits
1 Commits
v0.6.0.0
...
revert-259
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a7f06b978 |
18
install
18
install
@@ -6,9 +6,7 @@
|
||||
#
|
||||
|
||||
set -euo pipefail
|
||||
NORMIFS=$IFS
|
||||
SCRIFS=$'\n\t'
|
||||
IFS=$SCRIFS
|
||||
IFS=$'\n\t'
|
||||
|
||||
info() { echo -e "\\033[1;36m[INFO]\\033[0m $*"; }
|
||||
warn() { echo -e "\\033[1;33m[WARNING]\\033[0m $*"; }
|
||||
@@ -91,9 +89,7 @@ install_linux() {
|
||||
Distro='Kali'
|
||||
elif [ "${DISTRO_ID}" = 'arch' ] || [ "${DISTRO_ID}" = 'artix' ] || [ "${DISTRO_ID}" = 'manjaro' ] || [ "${DISTRO_ID}" = 'blackarch' ] || [ "${DISTRO_ID}" = 'arcolinux' ]; then
|
||||
Distro='Arch'
|
||||
elif cat /etc/os-release | grep -Eqi '^ID.*suse'; then
|
||||
Distro='SuSE'
|
||||
fi # Usually, I would do this very differently (. /etc/os-release ...), but keeping to the style.
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "${Distro}" ]; then
|
||||
@@ -113,16 +109,6 @@ install_linux() {
|
||||
fi
|
||||
elif [ "${Distro}" = "RedHat" ]; then
|
||||
sudo yum install -y git make gcc openssl-devel gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel bzip2 autoconf automake libtool bison sqlite-devel nodejs
|
||||
elif [ "${Distro}" = "SuSE" ]; then
|
||||
IFS=$NORMIFS
|
||||
intpkg=""
|
||||
nodejsver=nodejs16
|
||||
rpm --quiet -q nodejs18 && nodejsver="" # having NodeJS 18 installed should mean NodeJS 16 is not needed
|
||||
for i in git make gcc libopenssl-devel gcc-c++ patch libreadline6 readline6-devel libz1 zlib-devel libyaml-devel libffi-devel bzip2 autoconf automake libtool bison sqlite3-devel $nodejsver; do
|
||||
rpm --quiet -q $i || intpkg="$intpkg $i"
|
||||
done
|
||||
[ "$intpkg" ] && sudo zypper -n install -l $intpkg
|
||||
IFS=$SCRIFS
|
||||
elif [ "${Distro}" = "blackPanther" ]; then
|
||||
installing --auto git make gcc openssl-devel gcc-c++ patch readline-devel zlib-devel yaml-devel libffi-devel bzip2 autoconf automake libtool bison sqlite-devel nodejs sudo
|
||||
elif [ "${Distro}" = "Arch" ]; then
|
||||
|
||||
Reference in New Issue
Block a user