From 154e3174935eba283b7aebfdde804ecabf39d4ec Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 16 Apr 2023 01:33:14 -0600 Subject: [PATCH] improve "not found" message --- ishare2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ishare2 b/ishare2 index b2f3b6c..2ba8084 100755 --- a/ishare2 +++ b/ishare2 @@ -2133,8 +2133,14 @@ function pull_qemu() { # 5. Apply fix permissions command fix_permissions else - echo "File not found" + echo -e "${RED}Error: ${NC}No image found with number $QEMU_NUMBER" + echo -e "Use ${GREEN}ishare2 search qemu${NC} to search for an image" + # get user input y or n + read -p "Do you want to search for the image? [y/n] " -n 1 -r + echo -e # (optional) move to a new line after user input + if [[ $REPLY =~ ^[Yy]$ ]]; then ishare2 search qemu + fi fi }