summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/wm-request21
1 files changed, 13 insertions, 8 deletions
diff --git a/scripts/wm-request b/scripts/wm-request
index f9244ab..b9a703a 100755
--- a/scripts/wm-request
+++ b/scripts/wm-request
@@ -13,7 +13,19 @@ then
exit 1
fi
-for i in uuidgen afb-client-demo
+UUIDFILE=/tmp/wm-request-uuid
+if ! which uuidgen 2>/dev/null 1>&2
+then
+ echo "c7c638c5-d097-4eb4-9012-a1e4c25b9808" > $UUIDFILE
+else
+ if ! [ -f $UUIDFILE ]
+ then
+ uuidgen > $UUIDFILE
+ fi
+fi
+UUID="`cat $UUIDFILE`"
+
+for i in afb-client-demo
do
which $i 2>/dev/null 1>&2 || { echo "Program $i is missing" >&2; exit 1; }
done
@@ -41,13 +53,6 @@ fi
verb=$1
shift
-UUIDFILE=/tmp/wm-request-uuid
-if ! [ -f $UUIDFILE ]
-then
- uuidgen > $UUIDFILE
-fi
-UUID="`cat $UUIDFILE`"
-
set +u
args=
if [ "$1" ]