Skip to content

Commit

Permalink
making changes to the run demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikami123 committed Dec 7, 2024
1 parent a68d170 commit 8032353
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions run_demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 8032353

Please sign in to comment.