mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-10-13 19:49:12 +00:00
Fixed self destroy
This commit is contained in:
parent
1d76a90ae5
commit
10af8ee01a
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ while [ -h "$b_source" ]; do
|
||||||
[[ $b_source != /* ]] && b_source="$b_dir/$b_source"
|
[[ $b_source != /* ]] && b_source="$b_dir/$b_source"
|
||||||
done
|
done
|
||||||
cur_dir="$(cd -P "$(dirname "$b_source")" && pwd)"
|
cur_dir="$(cd -P "$(dirname "$b_source")" && pwd)"
|
||||||
|
script_name=$(basename "$0")
|
||||||
|
|
||||||
# Check command exist function
|
# Check command exist function
|
||||||
_command_exists() {
|
_command_exists() {
|
||||||
|
@ -63,7 +64,7 @@ arch() {
|
||||||
armv6* | armv6) echo 'armv6' ;;
|
armv6* | armv6) echo 'armv6' ;;
|
||||||
armv5* | armv5) echo 'armv5' ;;
|
armv5* | armv5) echo 'armv5' ;;
|
||||||
s390x) echo 's390x' ;;
|
s390x) echo 's390x' ;;
|
||||||
*) rm -f ${cur_dir}/update.sh && _fail "Unsupported CPU architecture!" ;;
|
*) echo -e "${red}Unsupported CPU architecture!${plain}" && rm -f "${cur_dir}/${script_name}" >/dev/null 2>&1 ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue