diff --git a/checker_tool/check_cpfs.sh b/checker_tool/check_cpfs.sh index ba1b16f06..84c9e40d3 100755 --- a/checker_tool/check_cpfs.sh +++ b/checker_tool/check_cpfs.sh @@ -83,15 +83,15 @@ function print_usage() { echo "Usage: ${script_name} [OPTIONS]..." echo "" echo "Accepted cli arguments are:" - echo -e "\t[--help|-h], prints this help." - echo -e "\t[--all|-a], all cases will be ran." - echo -e "\t[--groups|-g ], the case groups should be like --groups='group1,group2'." - echo -e "\t[--groups|-g -l], list the current supported groups." - echo -e "\t[--ignore-groups|-ng ], skip the cases groups, like -ng group1,group2." - echo -e "\t[--cases|-c ], the cases should be like --cases='case1,case2'." - echo -e "\t[--cases|-c -l], list the current supported cases." - echo -e "\t[--ignore-cases|-nc ], skip the cases groups, like -nc case1,case2." - echo -e "\t[--output-file|-f ], name to use for the output file. Default name is 'results.json'" + printf '%b\n' "\t[--help|-h], prints this help." + printf '%b\n' "\t[--all|-a], all cases will be ran." + printf '%b\n' "\t[--groups|-g ], the case groups should be like --groups='group1,group2'." + printf '%b\n' "\t[--groups|-g -l], list the current supported groups." + printf '%b\n' "\t[--ignore-groups|-ng ], skip the cases groups, like -ng group1,group2." + printf '%b\n' "\t[--cases|-c ], the cases should be like --cases='case1,case2'." + printf '%b\n' "\t[--cases|-c -l], list the current supported cases." + printf '%b\n' "\t[--ignore-cases|-nc ], skip the cases groups, like -nc case1,case2." + printf '%b\n' "\t[--output-file|-f ], name to use for the output file. Default name is 'results.json'" echo "" } diff --git a/preload_data.sh b/preload_data.sh index b1a5fc5bb..e2a09c6d3 100755 --- a/preload_data.sh +++ b/preload_data.sh @@ -522,7 +522,7 @@ data: [alt_names] - DNS.1 = \$(echo -n "\$my_hostname" | sed s/-[0-9]*\$//) + DNS.1 = \$(printf '%s' "\$my_hostname" | sed s/-[0-9]*\$//) DNS.2 = \$my_hostname @@ -1536,7 +1536,7 @@ data: [alt_names] - DNS.1 = \$(echo -n "\$my_hostname" | sed s/-[0-9]*\$//) + DNS.1 = \$(printf '%s' "\$my_hostname" | sed s/-[0-9]*\$//) DNS.2 = \$my_hostname