aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2022-11-20 21:19:25 +0000
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2022-11-20 21:19:25 +0000
commite7d1da28bd6fdcee9cee52c7498eb3a9e576e194 (patch)
treeb30a669e43f992f1945ddf973e1061e7728c7fcb /util
parent913c5bf4c52f9b5e32cbc6f9e43bb05c603b6f3b (diff)
Add colour to link
Diffstat (limited to 'util')
-rw-r--r--util/runners.py3
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: