~mil/sxmo-build

447a66e4a13d163210899ebc7bbe160e88326938 — Stacy Harper 24 days ago 205ba44
Refact this hold on action
1 files changed, 9 insertions(+), 9 deletions(-)

M sxmo_build_all.sh
M sxmo_build_all.sh => sxmo_build_all.sh +9 -9
@@ 6,6 6,12 @@ cd build-sxmo-dev

set -e

hold_on() {
	if [ $INTERACTIVE -eq 1 ]; then
		read -p "Any key to continue..."
	fi
}

FORCE=0
INTERACTIVE=0
while [ $# -gt 0 ] ; do


@@ 35,9 41,7 @@ else
	OS="Unknown"
fi

if [ $INTERACTIVE -eq 1 ]; then
	read -p "Any key to continue..."
fi
hold_on

case $OS in
	"Arch Linux ARM")


@@ 74,9 78,7 @@ repos="~mil/sxmo-utils ~mil/sxmo-dwm ~mil/sxmo-dmenu ~mil/lisgd ~mil/sxmo-surf ~

for repo in $repos; do
	echo "Obtaining $repo...">&2
	if [ $INTERACTIVE -eq 1 ]; then
		read -p "Any key to continue..."
	fi
	hold_on
	repodir="$(basename "$repo")"
	if [ -d "$repodir" ]; then
		cd "$repodir"


@@ 105,9 107,7 @@ done

cd ..

if [ $INTERACTIVE -eq 1 ]; then
	read -p "Any key to continue..."
fi
hold_on

case $OS in
	"Arch Linux ARM")