mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-13 14:41:37 +01:00
Add independence to location of cros common.sh (will it move to bin/?)
BUG=none TEST=reran script Review URL: http://codereview.chromium.org/3064025
This commit is contained in:
parent
9f8e53b27b
commit
e9e9ce49f9
@ -6,9 +6,16 @@
|
|||||||
|
|
||||||
# Script to push the output of build_image.sh to a remote image server
|
# Script to push the output of build_image.sh to a remote image server
|
||||||
|
|
||||||
# Load common constants. This should be the first executable line.
|
# TODO(pstew): Apparently the script files are in transition from
|
||||||
# The path to common.sh should be relative to your script's location.
|
# src/scripts to src/scripts/bin. However this state has existed
|
||||||
. "$(dirname "$0")/common.sh"
|
# for months now, therefore we need to look for the common libs in
|
||||||
|
# both places
|
||||||
|
script_root=$(dirname $0)
|
||||||
|
if [ -f ${script_root}/../common.sh ] ; then
|
||||||
|
script_root=${script_root}/..
|
||||||
|
fi
|
||||||
|
|
||||||
|
. "${script_root}/common.sh"
|
||||||
|
|
||||||
# Flags
|
# Flags
|
||||||
DEFINE_string upgrade_server "" "SSH-capable host for upgrade server install"
|
DEFINE_string upgrade_server "" "SSH-capable host for upgrade server install"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user