From 6719d137d71e2c830564fb48c1c9953939464098 Mon Sep 17 00:00:00 2001 From: Victor Date: Fri, 26 May 2023 22:29:31 +0200 Subject: [PATCH] fixed error cond 2 --- .forgejo/workflows/plex_update.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/plex_update.yml b/.forgejo/workflows/plex_update.yml index acd34ed..7bf027c 100644 --- a/.forgejo/workflows/plex_update.yml +++ b/.forgejo/workflows/plex_update.yml @@ -18,10 +18,9 @@ jobs: git add ./nixos/pkgs/plex-pass/ # Push if changed - git status ./nixos/pkgs/plex-pass/ | grep -q modified - if [ $? == 0 ]; then + + if git status ./nixos/pkgs/plex-pass/ | grep -q modified; then git commit -m "Update Plex" git push origin main fi - true