From 8032353a296174cd87d84586c8f07d9a4886a1f3 Mon Sep 17 00:00:00 2001 From: Mischa Mikami Date: Sat, 7 Dec 2024 03:16:49 -0800 Subject: [PATCH] making changes to the run demo --- run_demo.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/run_demo.sh b/run_demo.sh index 34e331f..19b4968 100755 --- a/run_demo.sh +++ b/run_demo.sh @@ -9,14 +9,12 @@ fi # Assign the argument to a variable IMAGE_FILE=$1 - #Check if file exists if [ ! -f "combined_demo/input-imgs/$IMAGE_FILE" ]; then echo "Error: File '$IMAGE_FILE' does not exist." exit 1 fi - #Checks if file is an image if ! file "combined_demo/input-imgs/$IMAGE_FILE" | grep -iE 'image|bitmap'; then echo "Error: '$image_file' is not a valid image file."