aboutsummaryrefslogtreecommitdiff
path: root/src/bin/watcher
diff options
context:
space:
mode:
authorLibravatar Mubashshir <ahmubashshir@gmail.com>2023-03-22 15:50:09 +0600
committerLibravatar Mubashshir <ahm@jadupc.com>2023-03-22 16:43:38 +0600
commit46cb28417cff9220836e5e4aad62e54aad0b5351 (patch)
tree4ffb2246bb0d0653c0c0fb765e3f801097ce1367 /src/bin/watcher
parent695623e4f60f7937e53cd3be0c921ff40edaca82 (diff)
downloadshopno-os-log-sync-46cb28417cff9220836e5e4aad62e54aad0b5351.tar.gz
shopno-os-log-sync-46cb28417cff9220836e5e4aad62e54aad0b5351.zip
path: Use `xdg.BaseDirectory` to get cache path
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
Diffstat (limited to 'src/bin/watcher')
-rwxr-xr-xsrc/bin/watcher5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/watcher b/src/bin/watcher
index 0dde744..ff91167 100755
--- a/src/bin/watcher
+++ b/src/bin/watcher
@@ -44,7 +44,10 @@ if len(arg) == 2:
help_option()
elif arg[1] == "--start" or arg[1] == "-s":
print("Log creations started... \nif you wanna stop it, use keyboard-shortcut (Ctrl+Shift+C or Ctrl+C)")
- x.log_creation()
+ try:
+ x.log_creation()
+ except KeyboardInterrupt:
+ exit(0)
elif arg[1] == "--version" or arg[1] == "-v":
print("Version: 2.0.0")
else: