We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7240562 commit caf3d43Copy full SHA for caf3d43
wfa
@@ -450,7 +450,11 @@ check_repo_package() {
450
check_installed_package() { "${pacman_command}" -Qq "${1}" > /dev/null 2>&1 && return 0 || return 1; }
451
452
# この関数に渡されたオペレーションが実行中の場合のみ正常終了します。
453
-check_operation() { [[ "${1}" = "${operation}" ]] && return 0 || return 1; }
+check_operation() {
454
+ [[ "${operation}" = "none" ]] && return 2
455
+ [[ ! "${1}" = "${operation}" ]] && return 1
456
+ return 0
457
+}
458
459
# ~/.cacheに相当するディレクトリを返します
460
get_cache_dir() {
0 commit comments