]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
build: config-submenu: Correctly quote file path for readlink
authorSimon Kuenzer <simon@unikraft.io>
Thu, 14 Sep 2023 19:07:15 +0000 (21:07 +0200)
committerRazvan Deaconescu <razvand@unikraft.io>
Fri, 20 Oct 2023 16:35:55 +0000 (19:35 +0300)
Whenever an output file is requested, `support/build/config-submenu`
writes the name of the target file to the console. This commit passes
this file name with quotes to `readlink` that converts it to a fully
qualified path.

Signed-off-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1104

support/build/config-submenu.sh

index 2c9d2b86bbe80e9d3c4cd40a817a28d375560473..8df3070c6131588ed919fb9988f009d4d991e6ed 100755 (executable)
@@ -138,6 +138,6 @@ esac
 
 # close FD:7 and print filename
 if [ ! -z "$ARG_OUT" ]; then
-       printf '%s\n' "$( "${CMD_READLINK}" -f $ARG_OUT )"
+       printf '%s\n' "$( "${CMD_READLINK}" -f "${ARG_OUT}" )"
        exec 7>&-
 fi