scripts/get_default_envs.sh: Remove blank lines
After sorting, unnoticed blank lines at the end move to the top. Avoid this by removing it before sorting. Signed-off-by: Christoph Niedermaier <cniedermaier@dh-electronics.com> Cc: Lukasz Majewski <lukma@denx.de> Cc: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Cc: Tom Rini <trini@konsulko.com> To: u-boot@lists.denx.de
This commit is contained in:
parent
eb68ead2d3
commit
7d79cba28c
@ -35,8 +35,8 @@ cp ${env_obj_file_path} ${ENV_OBJ_FILE_COPY}
|
|||||||
${OBJCOPY} --dump-section .rodata.default_environment=${ENV_OBJ_FILE_COPY} \
|
${OBJCOPY} --dump-section .rodata.default_environment=${ENV_OBJ_FILE_COPY} \
|
||||||
${env_obj_file_path}
|
${env_obj_file_path}
|
||||||
|
|
||||||
# Replace default '\0' with '\n' and sort entries
|
# Replace default '\0' with '\n' , remove blank lines and sort entries
|
||||||
tr '\0' '\n' < ${ENV_OBJ_FILE_COPY} | sort --field-separator== -k1,1 --stable
|
tr '\0' '\n' < ${ENV_OBJ_FILE_COPY} | sed -e '/^\s*$/d' | sort --field-separator== -k1,1 --stable
|
||||||
|
|
||||||
rm ${ENV_OBJ_FILE_COPY}
|
rm ${ENV_OBJ_FILE_COPY}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user