We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-l | --list
1 parent 2b2fd24 commit 91a9ae7Copy full SHA for 91a9ae7
results.sh
@@ -1 +1,39 @@
1
-php ./libs/show_results_table.php
+#!/bin/sh
2
+
3
+if [ ! `which php` ]; then
4
+ echo "php not found."
5
+ exit 1;
6
+fi
7
8
+oldIFS="$IFS"
9
+paramsin="${@%/}"
10
+IFS='()'
11
12
+paramsin=(`php ./libs/trim.php "r" "${paramsin}"`)
13
+IFS=';'
14
+params=(`php ./libs/strreplace.php " -" ";-" " ${paramsin}"`)
15
+IFS=$oldIFS
16
17
18
+results=(`ls ./output/`)
19
20
+for option in "${params[@]}"
21
+do
22
+ case "$option" in
23
+ -l|--list)
24
+ echo "List of results: "
25
+ for i in "${!results[@]}"; do
26
+ echo "$i) ${results[$i]}"
27
+ done
28
+ exit 1
29
+ ;;
30
+ ""|" ")
31
32
+ *)
33
+ echo "\"${option}\" not available"
34
35
36
+ esac
37
+done
38
39
+php ./libs/show_results_table.php
0 commit comments