Code Review
/
functest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Stop bashing functest scripts
[functest.git]
/
functest
/
ci
/
convert_images.sh
diff --git
a/functest/ci/convert_images.sh
b/functest/ci/convert_images.sh
index
d7ed388
..
2159d2a
100644
(file)
--- a/
functest/ci/convert_images.sh
+++ b/
functest/ci/convert_images.sh
@@
-1,11
+1,13
@@
-#!/bin/
ba
sh
+#!/bin/sh
set -ex
-pushd "${1:-/home/opnfv/functest/images}"
+initdir=$(pwd)
+
+cd "${1:-/home/opnfv/functest/images}"
for i in *.img *.qcow2; do
qemu-img convert -f qcow2 -O vmdk "$i" "${i%.*}.vmdk"
done
-popd
+cd $initdir