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:
parent
c8c6f91e78
commit
693ff96248
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user