diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2022-11-20 21:19:25 +0000 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2022-11-20 21:19:25 +0000 |
| commit | e7d1da28bd6fdcee9cee52c7498eb3a9e576e194 (patch) | |
| tree | b30a669e43f992f1945ddf973e1061e7728c7fcb /util/runners.py | |
| parent | 913c5bf4c52f9b5e32cbc6f9e43bb05c603b6f3b (diff) | |
Add colour to link
Diffstat (limited to 'util/runners.py')
| -rw-r--r-- | util/runners.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/runners.py b/util/runners.py index 63a3f3d..dcce820 100644 --- a/util/runners.py +++ b/util/runners.py @@ -1,6 +1,7 @@ import os import re from util.exceptions import StepFailedError +from termcolor import colored HOME = os.getenv("HOME") @@ -27,7 +28,7 @@ def do_link(source, destination): os.link(source, destination) except OSError as e: if e.errno == 17: - print(f"File {destination} already exists") + print(colored(" (File already exists)", "yellow")) else: raise StepFailedError("Link raised exeption: " + str(e)) from e except Exception as e: |
