Skip to content

Commit

Permalink
Refine code get BusyBox version (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeelsBoobz authored and tearmoon committed Feb 10, 2024
1 parent d00f4de commit 3a99f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion box/scripts/box.service
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ start_box() {
esac

# busybox check
busybox_code=$(busybox | head -n 1 | busybox awk '{print $2}' | sed -e 's/^v//' -e 's/-osm0sis$//' -e 's/-Magisk$//')
busybox_code=$(busybox | head -n 1 | busybox awk '{print $2}' | busybox grep -oE '[0-9.]*')
if [ "$(echo "${busybox_code}" | busybox awk -F. '{printf "%03d%03d%03d\n", $1, $2, $3}')" -lt "$(echo "1.36.1" | busybox awk -F. '{printf "%03d%03d%03d\n", $1, $2, $3}')" ]; then
log Info "Current $(which busybox) v${busybox_code}"
log Warning "Please update your busybox to v1.36.1+"
Expand Down

0 comments on commit 3a99f14

Please sign in to comment.