summary refs log tree commit diff
path: root/scripts/format-uuid.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/format-uuid.sh')
-rwxr-xr-xscripts/format-uuid.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/format-uuid.sh b/scripts/format-uuid.sh
index 6758088..441ed64 100755
--- a/scripts/format-uuid.sh
+++ b/scripts/format-uuid.sh
@@ -8,12 +8,12 @@ substr () {
     str=$1
     beg=$2
     end=$3
-    echo $str | cut -c $beg-$end
+    echo "$str" | cut -c "$beg-$end"
 }
 
-u1=$(substr $1 1 8)
-u2=$(substr $1 9 12)
-u3=$(substr $1 13 16)
-u4=$(substr $1 17 20)
-u5=$(substr $1 21 32)
+u1=$(substr "$1" 1 8)
+u2=$(substr "$1" 9 12)
+u3=$(substr "$1" 13 16)
+u4=$(substr "$1" 17 20)
+u5=$(substr "$1" 21 32)
 printf "%s\n" "$u1-$u2-$u3-$u4-$u5"