Skip to content

Commit

Permalink
Small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Dillonb committed Oct 22, 2024
1 parent 6e808ed commit 8d8d4b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions init.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env bash

if command -v chezmoi > /dev/null; then
chezmoi -S `readlink -f ~/.dotfiles/chezmoi` init
chezmoi -S `readlink -f ~/.dotfiles/chezmoi` apply
chezmoi -S "$(readlink -f ~/.dotfiles/chezmoi)" init
chezmoi -S "$(readlink -f ~/.dotfiles/chezmoi)" apply
else
if command -v nix-shell > /dev/null; then
nix-shell -p chezmoi --command "chezmoi -S `readlink -f ~/.dotfiles/chezmoi` init"
nix-shell -p chezmoi --command "chezmoi -S `readlink -f ~/.dotfiles/chezmoi` apply"
nix-shell -p chezmoi --command "chezmoi -S $(readlink -f ~/.dotfiles/chezmoi) init"
nix-shell -p chezmoi --command "chezmoi -S $(readlink -f ~/.dotfiles/chezmoi) apply"
else
echo "Please install chezmoi."
exit 1
Expand Down

0 comments on commit 8d8d4b7

Please # to comment.