mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-10 23:41:27 +00:00
2020-03-06 19:12:30
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
#copyright by monlor
|
||||
source /etc/mixbox/bin/base
|
||||
eval `mbdb export frps`
|
||||
|
||||
|
||||
BIN
apps/mixbox/bin/versioncmp_linux_arm
Normal file
BIN
apps/mixbox/bin/versioncmp_linux_arm
Normal file
Binary file not shown.
BIN
apps/mixbox/bin/versioncmp_linux_mips
Normal file
BIN
apps/mixbox/bin/versioncmp_linux_mips
Normal file
Binary file not shown.
BIN
apps/mixbox/bin/versioncmp_linux_x86_64
Normal file
BIN
apps/mixbox/bin/versioncmp_linux_x86_64
Normal file
Binary file not shown.
@@ -4,4 +4,4 @@ needver=""
|
||||
supports="linux_arm,linux_mips,linux_x86_64"
|
||||
appinfo="一款支持多平台,多架构的Shell工具箱"
|
||||
newinfo="修复插件安装失败的bug"
|
||||
version="0.1.9.3"
|
||||
version="0.1.9.4"
|
||||
|
||||
@@ -63,15 +63,15 @@ base_decode() {
|
||||
# $1 > $2 => -1
|
||||
# $1 < $2 => 1
|
||||
# $1 = $2 => 0
|
||||
versioncmp() {
|
||||
# versioncmp() {
|
||||
|
||||
[ "$1" = "$2" ] && echo -n "0" && return
|
||||
# [ "$1" = "$2" ] && echo -n "0" && return
|
||||
|
||||
if test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" != "$1"; then
|
||||
echo -n "-1"
|
||||
else
|
||||
echo -n "1"
|
||||
fi
|
||||
# if test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" != "$1"; then
|
||||
# echo -n "-1"
|
||||
# else
|
||||
# echo -n "1"
|
||||
# fi
|
||||
|
||||
}
|
||||
# }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user