This commit is contained in:
John Lancaster
2024-06-14 23:34:27 -05:00
parent ca7f62afe3
commit 1cae18670a
7 changed files with 75 additions and 11 deletions

View File

@@ -16,9 +16,9 @@ def create_symlink(source, target):
# Create the symbolic link
target_path.symlink_to(source)
print(f'Created symlink: {source} -> {target}')
print(f'Created symlink: [magenta]{source}[/] -> [magenta]{target}[/]')
except OSError as e:
print(f'Error creating symlink: {e}')
print(f'Error creating symlink: [bold red]{e}[/]')
def run_command(command):
@@ -34,7 +34,7 @@ def main():
# Define the source and target paths
socket_file = 'example.socket'
service_file = 'example@.service'
service_file = 'example.service'
# Create symlinks
create_symlink(repo_dir / socket_file, systemd_dir / socket_file)