diff --git a/happy_hare/install_ks.sh b/happy_hare/install_ks.sh index 225646e5a..7876134b7 100755 --- a/happy_hare/install_ks.sh +++ b/happy_hare/install_ks.sh @@ -51,6 +51,8 @@ self_update() { export UPDATE_GUARD=YES clear + set +e + (set -e cd "$SCRIPTPATH" BRANCH=$(timeout 3s git branch --show-current) [ -z "${BRANCH}" ] && { @@ -59,6 +61,7 @@ self_update() { } echo -e "${B_GREEN}Running on '${BRANCH}' branch" + echo -e "${B_GREEN}Checking for updates..." git fetch --quiet git diff --quiet --exit-code "origin/$BRANCH" [ $? -eq 1 ] && { @@ -78,6 +81,13 @@ self_update() { } GIT_VER=$(git describe --tags) echo -e "${B_GREEN}Already at the latest version: ${GIT_VER}" + ) + if [ $? -ne 0 ]; then + echo -e "${ERROR}Error updating from github" + echo -e "${ERROR}Looks like you might have an old version of git" + echo -e "${ERROR}Skipping automatic update..." + fi + set -e } function nextsuffix { diff --git a/ks_includes/widgets/prompts.py b/ks_includes/widgets/prompts.py index c0b799a41..1645a9757 100644 --- a/ks_includes/widgets/prompts.py +++ b/ks_includes/widgets/prompts.py @@ -29,8 +29,10 @@ def decode(self, data): self.text = "" self.buttons = [] return - elif data.startswith('prompt_text'): - self.text = data.replace('prompt_text ', '') + elif data.startswith('prompt_text'): # Happy Hare modified to allow multiple text lines (per spec) + if not self.text == "": + self.text += "\n\n" + self.text += data.replace('prompt_text ', '') return elif data.startswith('prompt_button ') or data.startswith('prompt_footer_button'): data = data.replace('prompt_button ', '')