commit 8c1054ca73b05f54859f95e3ccb90d66e3325342
parent 533cdc871e91605a6262c5fb0c13b7f6a0162850
Author: Chris Down <chris@chrisdown.name>
Date:   Wed, 11 Jan 2017 11:33:14 +0000
Put vars above functions
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/clipmenud b/clipmenud
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+cache_dir=/tmp/clipmenu.$USER/
+cache_file=$cache_dir/line_cache
+
 get_first_line() {
     # Args:
     # - $1, the file or data
@@ -37,9 +40,6 @@ debug() {
     fi
 }
 
-cache_dir=/tmp/clipmenu.$USER/
-cache_file=$cache_dir/line_cache
-
 # It's ok that this only applies to the final directory.
 # shellcheck disable=SC2174
 mkdir -p -m0700 "$cache_dir"