diff options
Diffstat (limited to 'dot/local/bin/cutbuffer_push')
-rwxr-xr-x | dot/local/bin/cutbuffer_push | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/dot/local/bin/cutbuffer_push b/dot/local/bin/cutbuffer_push index 62faf7b..cad9367 100755 --- a/dot/local/bin/cutbuffer_push +++ b/dot/local/bin/cutbuffer_push | |||
@@ -1,9 +1,9 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | default_basename=cutbuffer_grab | 2 | dest_basename=cutbuffer_grab |
3 | default_extension=txt | 3 | dest_extension=txt |
4 | date_format=+%F_%H%M%S | 4 | date_format=+%F_%H%M%S |
5 | 5 | ||
6 | destdir=$HOME/$default_basename | 6 | destdir=$HOME/$dest_basename |
7 | 7 | ||
8 | chdir_to_destination() | 8 | chdir_to_destination() |
9 | { | 9 | { |
@@ -13,9 +13,8 @@ chdir_to_destination() | |||
13 | 13 | ||
14 | choose_destination() | 14 | choose_destination() |
15 | { | 15 | { |
16 | local stamp basename extension now | ||
17 | now=$(date "$date_format") | 16 | now=$(date "$date_format") |
18 | DESTINATION=$default_basename.$now.$default_extension | 17 | DESTINATION=$dest_basename.$now.$dest_extension |
19 | } | 18 | } |
20 | 19 | ||
21 | set -e | 20 | set -e |