Skip to content

Commit e9c0063

Browse files
committed
feat(install): Add stow_authinfo function and call in main in omarchy/install.sh
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
1 parent 6a3ac20 commit e9c0063

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

omarchy/install.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@ stow_doom() {
8585
stow "${STOW_FLAGS[@]}" -d "$SCRIPT_DIR/../common" -vt "$target_dir" doom
8686
}
8787

88+
stow_authinfo() {
89+
if [[ ! -d "$SCRIPT_DIR/../common/authinfo" ]]; then
90+
printf 'authinfo directory not found in %s.\n' "$SCRIPT_DIR/../common" >&2
91+
exit 1
92+
fi
93+
94+
stow "${STOW_FLAGS[@]}" -d "$SCRIPT_DIR/../common" -vt "$HOME" authinfo
95+
}
96+
8897
stow_systemd_configs() {
8998
if [[ ! -d "$SCRIPT_DIR/systemd" ]]; then
9099
printf 'Systemd configuration directory not found in %s.\n' "$SCRIPT_DIR" >&2
@@ -289,6 +298,7 @@ main() {
289298
require_cmd systemctl "Required to manage user services"
290299

291300
stow_doom
301+
stow_authinfo
292302
stow_systemd_configs
293303
stow_hypr_configs
294304
stow_waybar_config

0 commit comments

Comments
 (0)