Skip to content

Commit

Permalink
Simplify conditional directory creation
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Feb 27, 2024
1 parent cea641f commit 513f49d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions installer/symlinks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ directories=(
~/.re.pl
)

if is os name eq darwin; then
directories+=("$HOME/.config/karabiner")
fi

for dir in "${directories[@]}"; do
mkdir -p "$dir"
done

if is os name eq darwin; then
mkdir -p "$HOME/.config/karabiner"
fi

nvim_conf_dir="$HOME/.config/nvim"
# Simplify after deployed to all environments
if [[ -d $nvim_conf_dir && ! -L $nvim_conf_dir ]]; then
Expand Down

0 comments on commit 513f49d

Please sign in to comment.