aboutsummaryrefslogtreecommitdiff
path: root/data/scripts/log-sync
diff options
context:
space:
mode:
Diffstat (limited to 'data/scripts/log-sync')
-rwxr-xr-xdata/scripts/log-sync4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/scripts/log-sync b/data/scripts/log-sync
index e810f6e..7459a7b 100755
--- a/data/scripts/log-sync
+++ b/data/scripts/log-sync
@@ -1,13 +1,13 @@
#!/bin/bash
source "${BASH_ARGV0%/*}"/common.sh
-RAW_DATA_PATH=""
+RAW_DATA_PATH="${XDG_CACHE_HOME:-$HOME/.cache}/Watcher"
enmac="$(getaddr "$(getiface "net/e")")"
wlmac="$(getaddr "$(getiface "net/w")")"
get_logs()
{
- find "${XDG_CACHE_HOME:-$HOME/.cache}/Watcher/$1" -type f -exec basename -a '{}' + \
+ find "$RAW_DATA_PATH/$1" -type f -exec basename -a '{}' + \
| grep -oE "$2"
}