From 6b6d7df247a9569fa934a23ab038959034b95377 Mon Sep 17 00:00:00 2001 From: Eleanor Saitta Date: Fri, 9 Oct 2015 15:22:20 -0400 Subject: [PATCH] Make it easier to update the PyCIRCLean install inside an image. --- mount_image.sh | 4 ++-- update_PyCIRCLean.sh | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100755 update_PyCIRCLean.sh diff --git a/mount_image.sh b/mount_image.sh index 079f08d..5d76f23 100755 --- a/mount_image.sh +++ b/mount_image.sh @@ -22,6 +22,7 @@ if [ -z "$1" ]; then exit fi COMMAND=${1} +COMMAND_OPT=${2} set -e set -x @@ -99,5 +100,4 @@ mv ${CHROOT_PATH}/etc/ld.so.preload ${CHROOT_PATH}/etc/ld.so.preload_bkp # To make debugging easier echo "KittenGroomer: Image mounted, executing command from mount_image.sh" 1>&2 - -${COMMAND} ${CHROOT_PATH} +${COMMAND} ${CHROOT_PATH} ${COMMAND_OPT} diff --git a/update_PyCIRCLean.sh b/update_PyCIRCLean.sh new file mode 100755 index 0000000..14f8e0f --- /dev/null +++ b/update_PyCIRCLean.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# Change to your repo if doing python dev +./mount_image.sh chroot "pip install git+https://github.com/Dymaxion00/PyCIRCLean@dev"