X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=scripts%2Fgen_initramfs_list.sh;h=0055b07b03b68cafd0bc3c400ee23b686632efbf;hb=861d75d098e2d0a2d7692c9d6a30b6fd2c81387c;hp=17fa901418ae6a491ba61f3814a1143e2a62bfde;hpb=90b90d06db0be30aeb89b6b4ab618d644211a85e;p=karo-tx-linux.git diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh index 17fa901418ae..0055b07b03b6 100755 --- a/scripts/gen_initramfs_list.sh +++ b/scripts/gen_initramfs_list.sh @@ -97,7 +97,10 @@ print_mtime() { } list_parse() { - [ ! -L "$1" ] && echo "$1 \\" || : + if [ -L "$1" ]; then + return + fi + echo "$1" | sed 's/:/\\:/g; s/$/ \\/' } # for each file print a line in following format