]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - scripts/gen_initramfs_list.sh
arm64: smp: prepare for smp_processor_id() rework
[karo-tx-linux.git] / scripts / gen_initramfs_list.sh
index 17fa901418ae6a491ba61f3814a1143e2a62bfde..0055b07b03b68cafd0bc3c400ee23b686632efbf 100755 (executable)
@@ -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