Skip to content

Commit

Permalink
fix: update if statement syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryIvo committed Oct 27, 2023
1 parent fc8fd0b commit f5cc838
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ if [ ${BOARD} = "generic-device" ]; then
RAM_MB_FOR_KURA=$(expr $RAM_MB / 4)
RAM_REPLACEMENT_STRING="-Xms${RAM_MB_FOR_KURA}m -Xmx${RAM_MB_FOR_KURA}m"

if RAM_MB > 1024
then
if [ "$RAM_MB" -gt 1024 ]; then
echo "Setting kura ram -Xms and -Xmx to ${RAM_MB_FOR_KURA}m"
sed -i "s/-Xms[0-9]*m -Xmx[0-9]*m/$RAM_REPLACEMENT_STRING/g" /opt/eclipse/kura/bin/start_kura.sh
sed -i "s/-Xms[0-9]*m -Xmx[0-9]*m/$RAM_REPLACEMENT_STRING/g" /opt/eclipse/kura/bin/start_kura_debug.sh
Expand Down

0 comments on commit f5cc838

Please sign in to comment.