From 2f91ffb23dacd3fdaf7b0eb1337c62c75557061c Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 5 Dec 2021 04:51:01 +0000 Subject: [PATCH] chore(style): wrap info-only installers in function --- nerd-fonts/install.sh | 14 +++++++++----- nerdfonts/install.sh | 14 +++++++++----- wsl/install.sh | 8 ++++++-- wsl1/install.sh | 8 ++++++-- wsl2/install.sh | 8 ++++++-- 5 files changed, 36 insertions(+), 16 deletions(-) diff --git a/nerd-fonts/install.sh b/nerd-fonts/install.sh index fe4f221..08e9ee0 100644 --- a/nerd-fonts/install.sh +++ b/nerd-fonts/install.sh @@ -6,8 +6,12 @@ # description: | # See https://webinstall.dev/nerdfont -echo "The full Nerd Fonts patcher is not yet available." -echo "Want the Droid Sans 'nerdfont' in the meantime?" -echo "" -echo "Run 'webi nerdfont' instead." -echo "" +function __todo_nerdfonts() { + echo "The full Nerd Fonts patcher is not yet available." + echo "Want the Droid Sans 'nerdfont' in the meantime?" + echo "" + echo "Run 'webi nerdfont' instead." + echo "" +} + +__todo_nerdfonts diff --git a/nerdfonts/install.sh b/nerdfonts/install.sh index fe4f221..08e9ee0 100644 --- a/nerdfonts/install.sh +++ b/nerdfonts/install.sh @@ -6,8 +6,12 @@ # description: | # See https://webinstall.dev/nerdfont -echo "The full Nerd Fonts patcher is not yet available." -echo "Want the Droid Sans 'nerdfont' in the meantime?" -echo "" -echo "Run 'webi nerdfont' instead." -echo "" +function __todo_nerdfonts() { + echo "The full Nerd Fonts patcher is not yet available." + echo "Want the Droid Sans 'nerdfont' in the meantime?" + echo "" + echo "Run 'webi nerdfont' instead." + echo "" +} + +__todo_nerdfonts diff --git a/wsl/install.sh b/wsl/install.sh index 43439b0..b581875 100644 --- a/wsl/install.sh +++ b/wsl/install.sh @@ -1,4 +1,8 @@ #!/bin/bash -echo "WSL (Windows Subsystem for Linux) can only be installed from Windows 10" -exit 0 +function __pass() { + echo "WSL (Windows Subsystem for Linux) can only be installed from Windows 10" + exit 0 +} + +__pass diff --git a/wsl1/install.sh b/wsl1/install.sh index 01ab542..352fea8 100644 --- a/wsl1/install.sh +++ b/wsl1/install.sh @@ -1,4 +1,8 @@ #!/bin/bash -echo "WSL 1 (Windows Subsystem for Linux) can only be installed from Windows 10" -exit 0 +function __pass() { + echo "WSL 1 (Windows Subsystem for Linux) can only be installed from Windows 10" + exit 0 +} + +__pass diff --git a/wsl2/install.sh b/wsl2/install.sh index d5edcb9..423e4f9 100644 --- a/wsl2/install.sh +++ b/wsl2/install.sh @@ -1,4 +1,8 @@ #!/bin/bash -echo "WSL 2 (Windows Subsystem for Linux with Hyper-V) can only be installed from Windows 10" -exit 0 +function __pass() { + echo "WSL 2 (Windows Subsystem for Linux with Hyper-V) can only be installed from Windows 10" + exit 0 +} + +__pass