Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1258)

Unified Diff: mk_memento_images.sh

Issue 4825004: crosutils: move image_common.sh to lib/cros_image_common.sh (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Remove the extra path check. Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « make_factory_package.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mk_memento_images.sh
diff --git a/mk_memento_images.sh b/mk_memento_images.sh
index b5d786135c2ed6dad11e24bca4cac3fe4a61ebf5..415768fb4ba7a538c8103e656454726e355d4c1b 100755
--- a/mk_memento_images.sh
+++ b/mk_memento_images.sh
@@ -10,13 +10,13 @@
set -e
-LIB_IMAGE_COMMON="$(dirname "$0")/image_common.sh"
-if ! . "$LIB_IMAGE_COMMON"; then
- echo "Missing required library: $LIB_IMAGE_COMMON. Cannot continue."
+# Load functions designed for image processing
+if ! . "$(dirname "$0")/lib/cros_image_common.sh"; then
+ echo "ERROR: Cannot load required library: lib/cros_image_common.sh; Abort."
exit 1
fi
-if [ -z "$2" -o -z "$1" ]; then
+if [ -z "$2" -o -z "$1" ] || [ "${#@}" -ne 2 -a "${#@}" -ne 3 ]; then
echo "usage: $0 path/to/kernel_partition_img path/to/rootfs_partition_img"
echo " or $0 path/to/chromiumos_img kern_part_no rootfs_part_no"
exit 1
« no previous file with comments | « make_factory_package.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698