diff options
| author | 2023-03-22 15:50:09 +0600 | |
|---|---|---|
| committer | 2023-03-22 16:43:38 +0600 | |
| commit | 46cb28417cff9220836e5e4aad62e54aad0b5351 (patch) | |
| tree | 4ffb2246bb0d0653c0c0fb765e3f801097ce1367 /src/bin/watcher | |
| parent | 695623e4f60f7937e53cd3be0c921ff40edaca82 (diff) | |
| download | shopno-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-x | src/bin/watcher | 5 |
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: |
