소스 검색

fix xup for newly added packages

Noah Vogt 1 년 전
부모
커밋
5bf7aad3f2
1개의 변경된 파일8개의 추가작업 그리고 7개의 파일을 삭제
  1. 8 7
      local-bin/xup

+ 8 - 7
local-bin/xup

@@ -14,16 +14,17 @@ for file in "$@"; do
     for old_pkg in "$xdg_repo_path/$pkgname"*.pkg.tar.zst; do
         if [ -e "$old_pkg" ]; then
             rm "$xdg_repo_path/$pkgname"*.pkg.tar.zst
-            if [ "$more_than_one_arguemt_given" = 0 ]; then
-                more_than_one_arguemt_given=1
-                commit_msg="$commit_msg $pkgname -> $pkgver"
-            else
-                commit_msg="$commit_msg + $pkgname -> $pkgver"
-            fi
-            mv "$file" "$xdg_repo_path"
             break
         fi
     done
+
+    if [ "$more_than_one_arguemt_given" = 0 ]; then
+        more_than_one_arguemt_given=1
+        commit_msg="$commit_msg $pkgname -> $pkgver"
+    else
+        commit_msg="$commit_msg + $pkgname -> $pkgver"
+    fi
+    mv "$file" "$xdg_repo_path"
 done