mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
Only cache sudo if outside chroot
Review URL: http://codereview.chromium.org/1709005
This commit is contained in:
parent
32ddb4282f
commit
6975c665d8
@ -51,6 +51,9 @@ then
|
||||
SYSROOT="${FLAGS_build_root}/${FLAGS_board}"
|
||||
else
|
||||
SYSROOT="${DEFAULT_CHROOT_DIR}${FLAGS_build_root}/${FLAGS_board}"
|
||||
echo "Caching sudo authentication"
|
||||
sudo -v
|
||||
echo "Done"
|
||||
fi
|
||||
AUTOTEST_SRC="${SYSROOT}/usr/local/autotest"
|
||||
|
||||
@ -94,11 +97,6 @@ fi
|
||||
FLAGS_from=`eval readlink -f ${FLAGS_from}`
|
||||
FLAGS_to=`eval readlink -f ${FLAGS_to}`
|
||||
|
||||
# Done evaluating arguments, lets go!
|
||||
echo "Caching sudo authentication"
|
||||
sudo -v
|
||||
echo "Done"
|
||||
|
||||
# Use this image as the source image to copy
|
||||
SRC_IMAGE="${FLAGS_from}/chromiumos_image.bin"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user