diff options
| author | Joshua Sing <joshua@joshuasing.dev> | 2026-01-25 16:10:09 +1100 |
|---|---|---|
| committer | Joshua Sing <joshua@joshuasing.dev> | 2026-01-25 16:10:09 +1100 |
| commit | 1c945c2e11776c78c7e49e86c5a5aac23f48434b (patch) | |
| tree | a13e3275766f67e65add44b7fc07d552687c1801 | |
| parent | 3474d66b13bec7b9c04c797296091ae6a12df05a (diff) | |
| download | portable-1c945c2e11776c78c7e49e86c5a5aac23f48434b.tar.gz portable-1c945c2e11776c78c7e49e86c5a5aac23f48434b.tar.bz2 portable-1c945c2e11776c78c7e49e86c5a5aac23f48434b.zip | |
scripts/test: remove non-standard sort, tail and find flags
| -rwxr-xr-x | scripts/test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/test b/scripts/test index 1c00e61..5e95dfd 100755 --- a/scripts/test +++ b/scripts/test | |||
| @@ -21,8 +21,8 @@ setup_cross_compiler() { | |||
| 21 | CC=${cross_prefix}-gcc | 21 | CC=${cross_prefix}-gcc |
| 22 | CXX=${cross_prefix}-g++ | 22 | CXX=${cross_prefix}-g++ |
| 23 | else | 23 | else |
| 24 | gcc_ver=$(find /usr/bin -maxdepth 1 -name "${cross_prefix}-gcc-[0-9]*" 2>/dev/null \ | 24 | gcc_ver=$(find /usr/bin -name "${cross_prefix}-gcc-[0-9]*" -prune 2>/dev/null \ |
| 25 | | sed "s/.*${cross_prefix}-gcc-//" | sort -V | tail -1) | 25 | | sed "s/.*${cross_prefix}-gcc-//" | sort -n | tail -n 1) |
| 26 | CC=${cross_prefix}-gcc-${gcc_ver} | 26 | CC=${cross_prefix}-gcc-${gcc_ver} |
| 27 | CXX=${cross_prefix}-g++-${gcc_ver} | 27 | CXX=${cross_prefix}-g++-${gcc_ver} |
| 28 | fi | 28 | fi |
