Skip to content

Commit

Permalink
Move bin check to a precondition
Browse files Browse the repository at this point in the history
Co-authored-by: Liam <[email protected]>
  • Loading branch information
adamperkowski and lj3954 committed Sep 12, 2024
1 parent ee8d682 commit c4b5966
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 0 additions & 5 deletions tabs/applications-setup/shell-aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

. ../common-script.sh

if command_exists linutil; then
echo "linutil already exists in your system."
exit 1
fi

shells=(bash zsh fish tcsh ksh nu) # Supported shells
configs=(.bashrc .zshrc config.fish .tcshrc .kshrc config.nu) # Shell config filenames
aliases=("alias linutil=\"curl -fsSL https://christitus.com/linux | sh\"" # Alias structures for different shell configs
Expand Down
7 changes: 6 additions & 1 deletion tabs/applications-setup/tab_data.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ script = "zsh-setup.sh"

[[data]]
name = "Shell aliases for linutil"
script = "shell-aliases.sh"
script = "shell-aliases.sh"

[[data.preconditions]]
matches = false
data = "command_exists"
values = [ "linutil" ]

0 comments on commit c4b5966

Please sign in to comment.