scripts/get_default_envs.sh: Remove blank lines
PATCH 1/1 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 <[email protected]>
Cc Lukasz Majewski <[email protected]>
Cc Rasmus Villemoes <[email protected]>
Cc Tom Rini <[email protected]>
--- scripts/get_default_envs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/get_default_envs.sh +2 -2
@@ -35,8 +35,8 @@ cp ${env_obj_file_path} ${ENV_OBJ_FILE_COPY} ${OBJCOPY} --dump-section .rodata.default_environment=${ENV_OBJ_FILE_COPY} \ ${env_obj_file_path} -# Replace default '\0' with '\n' and sort entries -tr '\0' '\n' < ${ENV_OBJ_FILE_COPY} | sort --field-separator== -k1,1 --stable +# Replace default '\0' with '\n' , remove blank lines and sort entries +tr '\0' '\n' < ${ENV_OBJ_FILE_COPY} | sed -e '/^\s*$/d' | sort --field-separator== -k1,1 --stable rm ${ENV_OBJ_FILE_COPY}
Signature · 1 line
2.11.0
Quoted 8 lines · Christoph Niedermaier
After sorting, unnoticed blank lines at the end move to the top. Avoid this by removing it before sorting.
Signed-off-by Christoph Niedermaier <[email protected]>Cc Lukasz Majewski <[email protected]>Cc Rasmus Villemoes <[email protected]>Cc Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom