diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2018-09-10 14:20:03 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-09-13 15:19:36 +1000 |
commit | 084e37bab1cf6fb334af3f2c8a77f0f260eb91fe (patch) | |
tree | 3d2a955eec28f6f31b25a9528497f84fb5641e81 /test/sreset_world/run_mambo_p9_sreset.sh | |
parent | 9ff660e218345ac21f266d0a8dc8514f5d651e64 (diff) | |
download | blackbird-skiboot-084e37bab1cf6fb334af3f2c8a77f0f260eb91fe.tar.gz blackbird-skiboot-084e37bab1cf6fb334af3f2c8a77f0f260eb91fe.zip |
Use $() rather than backticks in all shell
The cool kids are all using $() these days as backticks are all
backwards and uncool.
Practically speaking, it makes it easier to escape things, nest things,
and all the other reasons listed on http://mywiki.wooledge.org/BashFAQ/082
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'test/sreset_world/run_mambo_p9_sreset.sh')
-rwxr-xr-x | test/sreset_world/run_mambo_p9_sreset.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sreset_world/run_mambo_p9_sreset.sh b/test/sreset_world/run_mambo_p9_sreset.sh index 9f61f1e9..926ce3e4 100755 --- a/test/sreset_world/run_mambo_p9_sreset.sh +++ b/test/sreset_world/run_mambo_p9_sreset.sh @@ -18,19 +18,19 @@ if [ -n "$KERNEL" ]; then exit 0; fi -if [ ! `command -v expect` ]; then +if [ ! $(command -v expect) ]; then echo 'Could not find expect binary. Skipping sreset_world test'; exit 0; fi if [ -n "$SKIBOOT_ENABLE_MAMBO_STB" ]; then - export SKIBOOT_ZIMAGE=`pwd`/test/sreset_world/sreset_kernel/sreset_kernel.stb + export SKIBOOT_ZIMAGE=$(pwd)/test/sreset_world/sreset_kernel/sreset_kernel.stb else - export SKIBOOT_ZIMAGE=`pwd`/test/sreset_world/sreset_kernel/sreset_kernel + export SKIBOOT_ZIMAGE=$(pwd)/test/sreset_world/sreset_kernel/sreset_kernel fi # Currently getting some core dumps from mambo, so disable them! -OLD_ULIMIT_C=`ulimit -c` +OLD_ULIMIT_C=$(ulimit -c) ulimit -c 0 t=$(mktemp) || exit 1 |