Skip to content

Commit

Permalink
fix(chezmoi): aqua update script - better handle op interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
scottames committed May 7, 2023
1 parent 5be5310 commit ac3d5d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion home/.chezmoiscripts/run_once_after_10_aqua.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ if [[ ! $(command -v aqua) ]]; then

popd
elif [[ "${_aqua_latest_version}" != "${_aqua_current}" ]]; then
aqua update-aqua
if [[ $(command -v op) ]]; then
op run -- aqua update-aqua || GITHUB_TOKEN="" aqua update-aqua
else
GITHUB_TOKEN="" aqua update-aqua
fi
else
printf "\n${cyan}💧 ${magenta}%s${clear}\n\n" " aqua installed and up to date"
fi
Expand Down

0 comments on commit ac3d5d9

Please sign in to comment.