mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
fixed "unrecognized symbol [[" (#4656)
* fixed "unrecognized symbol [[" the old way caused the compilation to abort with a syntax error. idk why, but it did, this is how I got it to work. * fixed syntax error improvement to previous fix
This commit is contained in:
@@ -260,7 +260,7 @@ prepare_host() {
|
||||
|
||||
# check free space (basic)
|
||||
local freespace=$(findmnt --target "${SRC}" -n -o AVAIL -b 2> /dev/null) # in bytes
|
||||
if [[ -n $freespace && $(($freespace / 1073741824)) -lt 10 ]]; then
|
||||
if [ -n "$freespace" ] && [ "$((freespace / 1073741824))" -lt 10 ]; then
|
||||
display_alert "Low free space left" "$(($freespace / 1073741824)) GiB" "wrn"
|
||||
# pause here since dialog-based menu will hide this message otherwise
|
||||
echo -e "Press \e[0;33m<Ctrl-C>\x1B[0m to abort compilation, \e[0;33m<Enter>\x1B[0m to ignore and continue"
|
||||
|
||||
Reference in New Issue
Block a user