diff --git a/Ingegneria del Software/16/quest.txt b/Ingegneria del Software/16/quest.txt index 7bb9538..ce9037d 100644 --- a/Ingegneria del Software/16/quest.txt +++ b/Ingegneria del Software/16/quest.txt @@ -1,3 +1,3 @@ -img=https://imgur.com/sB0yXg9 +img=https://i.imgur.com/sB0yXg9.png Lo State Diagram in figura descrive (in modo semplificato) una macchina distributrice di bevande. Quale dei seguenti Sequence Diagram è consistente con lo State Diagram in figura ? diff --git a/Ingegneria del Software/20/quest.txt b/Ingegneria del Software/20/quest.txt index 48f4fe5..1fb3954 100644 --- a/Ingegneria del Software/20/quest.txt +++ b/Ingegneria del Software/20/quest.txt @@ -1,3 +1,3 @@ -img=https://imgur.com/Wk63xgA +img=https://i.imgur.com/Wk63xgA.png Lo state diagram in figura descrive (in modo semplificato) una macchina distributrice di bevande. Quale dei seguenti -modelli Modelica è plausibile per lo state diagram in figura? \ No newline at end of file +modelli Modelica è plausibile per lo state diagram in figura? diff --git a/Ingegneria del Software/21/quest.txt b/Ingegneria del Software/21/quest.txt index 7c61ecc..7799f39 100644 --- a/Ingegneria del Software/21/quest.txt +++ b/Ingegneria del Software/21/quest.txt @@ -1,2 +1,2 @@ -img=https://imgur.com/jHN6wRm -Quale delle seguenti frasi è corretta riguardo all'activity diagram in figura ? \ No newline at end of file +img=https://i.imgur.com/jHN6wRm.png +Quale delle seguenti frasi è corretta riguardo all'activity diagram in figura ? diff --git a/Ingegneria del Software/32/correct.txt b/Ingegneria del Software/32/correct.txt index e11056c..90c1575 100644 --- a/Ingegneria del Software/32/correct.txt +++ b/Ingegneria del Software/32/correct.txt @@ -1 +1 @@ -img=https://imgur.com/qKyYHVj \ No newline at end of file +img=https://i.imgur.com/qKyYHVj.png diff --git a/Ingegneria del Software/32/wrong 2.txt b/Ingegneria del Software/32/wrong 2.txt index 14aba6f..54e368c 100644 --- a/Ingegneria del Software/32/wrong 2.txt +++ b/Ingegneria del Software/32/wrong 2.txt @@ -1 +1 @@ -img=https://imgur.com/5I3NjLb \ No newline at end of file +img=https://i.imgur.com/5I3NjLb.png diff --git a/Ingegneria del Software/32/wrong.txt b/Ingegneria del Software/32/wrong.txt index a571746..c3a4d99 100644 --- a/Ingegneria del Software/32/wrong.txt +++ b/Ingegneria del Software/32/wrong.txt @@ -1 +1 @@ -img=https://imgur.com/NDNLPgt \ No newline at end of file +img=https://i.imgur.com/NDNLPgt.png diff --git a/Ingegneria del Software/45/quest.txt b/Ingegneria del Software/45/quest.txt index 80e366c..e43794a 100644 --- a/Ingegneria del Software/45/quest.txt +++ b/Ingegneria del Software/45/quest.txt @@ -1,2 +1,2 @@ -img = https://imgur.com/7DG7vhi -Quale pattern architetturale meglio descrive l'architettura in figura ? \ No newline at end of file +img=https://i.imgur.com/7DG7vhi.png +Quale pattern architetturale meglio descrive l'architettura in figura ? diff --git a/Ingegneria del Software/46/correct.txt b/Ingegneria del Software/46/correct.txt index 4ea53ed..4a45407 100644 --- a/Ingegneria del Software/46/correct.txt +++ b/Ingegneria del Software/46/correct.txt @@ -1 +1 @@ -img=https://imgur.com/cMy78HJ \ No newline at end of file +img=https://i.imgur.com/cMy78HJ.png diff --git a/Ingegneria del Software/46/wrong 2.txt b/Ingegneria del Software/46/wrong 2.txt index ecbda20..5b7d09a 100644 --- a/Ingegneria del Software/46/wrong 2.txt +++ b/Ingegneria del Software/46/wrong 2.txt @@ -1 +1 @@ -img=https://imgur.com/7lOYboM \ No newline at end of file +img=https://i.imgur.com/7lOYboM.png diff --git a/Ingegneria del Software/46/wrong.txt b/Ingegneria del Software/46/wrong.txt index c634767..50bd343 100644 --- a/Ingegneria del Software/46/wrong.txt +++ b/Ingegneria del Software/46/wrong.txt @@ -1 +1 @@ -img=https://imgur.com/4gXreOh \ No newline at end of file +img=https://i.imgur.com/4gXreOh.png diff --git a/Ingegneria del Software/47/quest.txt b/Ingegneria del Software/47/quest.txt index c691bc8..193a65f 100644 --- a/Ingegneria del Software/47/quest.txt +++ b/Ingegneria del Software/47/quest.txt @@ -1,3 +1,3 @@ -img=https://imgur.com/qNh120A +img=https://i.imgur.com/qNh120A.png Lo State Diagram in figura descrive (in modo semplificato) una macchina distributrice di bevande. Quale delle seguenti -frasi è corretta riguardo allo State Diagram in figura ? \ No newline at end of file +frasi è corretta riguardo allo State Diagram in figura ? diff --git a/Ingegneria del Software/50/quest.txt b/Ingegneria del Software/50/quest.txt index 6437d53..7816962 100644 --- a/Ingegneria del Software/50/quest.txt +++ b/Ingegneria del Software/50/quest.txt @@ -1,2 +1,2 @@ -img=https://imgur.com/0OTH4Yw -Quale delle seguenti frasi è corretta riguardo al Sequence Diagram in figura? \ No newline at end of file +img=https://i.imgur.com/0OTH4Yw.png +Quale delle seguenti frasi è corretta riguardo al Sequence Diagram in figura? diff --git a/check-ingsw-photos.sh b/check-ingsw-photos.sh new file mode 100755 index 0000000..94b92a1 --- /dev/null +++ b/check-ingsw-photos.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +SEARCHDIR="./Ingegneria del Software/" + +echo "Invalid URLs:" + +for img in `grep "img" "$SEARCHDIR" -R | sed -E 's/^(.*?)\.txt\:img\=//'`; do + img=$(echo "$img"|tr -d '\n'|tr -d '\r') + curl -I "$img" 2>/dev/null | \ + grep -i "Content-Type: image/" >/dev/null + if [ "$?" -ne 0 ]; then + ( + cd "$SEARCHDIR" + grep "$img" . -R + ) + fi +done