Browse Source

disable upxcheck suse

pull/9/head
Gorgone 6 years ago
committed by GitHub
parent
commit
51c01aa76f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 42
      support/os/suse.install

42
support/os/suse.install

@ -126,27 +126,27 @@ if ! hash sshpass 2>/dev/null; then
fi fi
upxversion=(0 0); upxversion=(0 0);
hash upx 2>/dev/null && upxversion=($(upx -V | awk 'NR==1 { verok=$2>=3.91; printf "%.2f %i", $2, verok }')); #hash upx 2>/dev/null && upxversion=($(upx -V | awk 'NR==1 { verok=$2>=3.91; printf "%.2f %i", $2, verok }'));
if [ ${upxversion[1]} == 0 ]; then #if [ ${upxversion[1]} == 0 ]; then
[ -f "$bindir"/upx ] && rm -f "$bindir"/upx &>/dev/null; # [ -f "$bindir"/upx ] && rm -f "$bindir"/upx &>/dev/null;
if [ "$(uname -m)" == "x86_64" ]; then # if [ "$(uname -m)" == "x86_64" ]; then
upxarch="upx-3.95-amd64_linux"; # upxarch="upx-3.95-amd64_linux";
else # else
upxarch="upx-3.95-i386_linux"; # upxarch="upx-3.95-i386_linux";
fi # fi
upxarchive=$upxarch".tar.bz2"; # upxarchive=$upxarch".tar.bz2";
[ -f "$dldir"/$upxarchive ] && rm -f "$dldir"/$upxarchive &>/dev/null; # [ -f "$dldir"/$upxarchive ] && rm -f "$dldir"/$upxarchive &>/dev/null;
upxurl="http://upx.sourceforge.net/download/$upxarchive"; # upxurl="http://upx.sourceforge.net/download/$upxarchive";
echo -e "$w_l get newer$g_l upx$y_l\tfrom: $upxurl"; # echo -e "$w_l get newer$g_l upx$y_l\tfrom: $upxurl";
echo "+++ $(date): wget $upxurl" >> "$install_log"; # echo "+++ $(date): wget $upxurl" >> "$install_log";
if wget --directory-prefix="$dldir" --append-output="$install_log" $upxurl; then # if wget --directory-prefix="$dldir" --append-output="$install_log" $upxurl; then
echo "+++ $(date): tar xjvf $upxarchive" >> "$install_log"; # echo "+++ $(date): tar xjvf $upxarchive" >> "$install_log";
tar xjvf "$dldir"/$upxarchive --directory="$bindir" $upxarch/upx --strip-components=1 >> "$install_log" 2>&1 || failed=1; # tar xjvf "$dldir"/$upxarchive --directory="$bindir" $upxarch/upx --strip-components=1 >> "$install_log" 2>&1 || failed=1;
[ -f "$dldir"/$upxarchive ] && rm -f "$dldir"/$upxarchive &>/dev/null; # [ -f "$dldir"/$upxarchive ] && rm -f "$dldir"/$upxarchive &>/dev/null;
else # else
failed=1; # failed=1;
fi # fi
fi #fi
[ $failed == 1 ] && echo -e "\n$r_l Installation with errors - see: $install_log"; [ $failed == 1 ] && echo -e "\n$r_l Installation with errors - see: $install_log";

Loading…
Cancel
Save