Bash Script Integer Comparison Syntax ошибкаLinux

Anonymous
Bash Script Integer Comparison Syntax ошибка

Сообщение Anonymous »

Ниже приведена логика Bash для компиляции и установки ядра Linux, если в номере патча в версии ядра Linux. < /p>
post_kernel_postinst() {
# Extract the new and current kernal verisons
NEW_KV=$(eselect kernel show | tail -n 1 | grep -oE '[0-9\.]{5,7}')
CURRENT_KV=$(uname -r | grep -oE '[0-9\.]{5,7}')

# Split the version strings into arrays
IFS='.' read -r -a NEW_KV_ARR

Подробнее здесь: https://stackoverflow.com/questions/795 ... ntax-error

Вернуться в «Linux»