aboutsummaryrefslogtreecommitdiff
path: root/libc/ci/run-qemu.sh
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2018-12-10 21:00:27 -0800
committerDaniel Mueller <deso@posteo.net>2018-12-10 21:00:27 -0800
commite2604a756aaddcd5919ee2f1b9cc0055d200f846 (patch)
tree1ea1b9900db20d3aadbddbce18882d0c957247d7 /libc/ci/run-qemu.sh
parent5875df6c958743cf86c75b2cb5fc2efe5ca0de43 (diff)
downloadnitrocli-e2604a756aaddcd5919ee2f1b9cc0055d200f846.tar.gz
nitrocli-e2604a756aaddcd5919ee2f1b9cc0055d200f846.tar.bz2
Update libc crate to 0.2.45
This change updates the libc crate to version 0.2.45. Import subrepo libc/:libc at f5636fc618f8e16968b3178196d73c94ad9f7b05
Diffstat (limited to 'libc/ci/run-qemu.sh')
-rw-r--r--libc/ci/run-qemu.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/libc/ci/run-qemu.sh b/libc/ci/run-qemu.sh
index b2f457d..6fba629 100644
--- a/libc/ci/run-qemu.sh
+++ b/libc/ci/run-qemu.sh
@@ -1,3 +1,5 @@
+#!/usr/bin/env sh
+
# Initial script which is run inside of all qemu images. The first argument to
# this script (as arranged by the qemu image itself) is the path to where the
# libc crate is mounted.
@@ -10,11 +12,11 @@
set -ex
-ROOT=$1
-cp -r $ROOT/libc /tmp/libc
+ROOT="${1}"
+cp -r "${ROOT}/libc" /tmp/libc
cd /tmp/libc
-TARGET=$(cat $ROOT/TARGET)
+TARGET="$(cat "${ROOT}/TARGET")"
export CARGO_TARGET_DIR=/tmp
case $TARGET in
@@ -24,9 +26,9 @@ case $TARGET in
;;
*)
- echo "Unknown target: $TARGET"
+ echo "Unknown target: ${TARGET}"
exit 1
;;
esac
-exec sh ci/run.sh $TARGET
+exec sh ci/run.sh "${TARGET}"