Skip to content

Commit

Permalink
Fix free translation error
Browse files Browse the repository at this point in the history
  • Loading branch information
m2-farzan committed Aug 29, 2022
1 parent 77fca1a commit 2233e11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ prepare() {

build() {
# Disable parallel build if RAM is low
if [[ $(free | grep -Po "Mem:\s+\K\d+") -lt 16000000 ]]; then
MIN_PARALLEL_BUILD_RAM_KB=16000000
if [[ $(free | grep -Po "Mem:\s+\K\d+") -lt $MIN_PARALLEL_BUILD_RAM_KB && $(grep MemTotal /proc/meminfo | grep -Po "MemTotal:\s+\K\d+") -lt $MIN_PARALLEL_BUILD_RAM_KB ]]; then
printf "\nRAM is smaller than 16 GB. Parallel build will be disabled for stability.\n\n"
export COLCON_EXTRA_ARGS="${COLCON_EXTRA_ARGS} --executor sequential"
fi
Expand Down

0 comments on commit 2233e11

Please sign in to comment.