OSDN Git Service
(root)
/
alterlinux
/
aptpac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
48b17b9
)
[update] : Supported uppercase command names
author
hayao
<hayao@fascode.net>
Sat, 24 Apr 2021 06:23:24 +0000
(15:23 +0900)
committer
hayao
<hayao@fascode.net>
Sat, 24 Apr 2021 06:23:24 +0000
(15:23 +0900)
aptpac
patch
|
blob
|
history
diff --git
a/aptpac
b/aptpac
index
d7e0927
..
4f04f3d
100755
(executable)
--- a/
aptpac
+++ b/
aptpac
@@
-40,7
+40,7
@@
DEBUG=false
RUN_WITH_SUDO=false
DIRECT_PACMAN=false
RUN_WITH_SUDO=false
DIRECT_PACMAN=false
-
autoremove
=false
+
AUTOREMOVE
=false
_msg_error () {
echo -e "${@}" >&2
_msg_error () {
echo -e "${@}" >&2
@@
-152,7
+152,7
@@
_run_aur_message(){
}
_run_autoremove(){
}
_run_autoremove(){
- if "${
autoremove
}"; then
+ if "${
AUTOREMOVE
}"; then
if [[ -n $(${PACMAN_COMMAND} -Qttdq) ]]; then
"${PACMAN_COMMAND}" -Qttdq | _sudo "${PACMAN_COMMAND}" -Rsc --config "${PACMAN_CONFIG}" -
else
if [[ -n $(${PACMAN_COMMAND} -Qttdq) ]]; then
"${PACMAN_COMMAND}" -Qttdq | _sudo "${PACMAN_COMMAND}" -Rsc --config "${PACMAN_CONFIG}" -
else
@@
-222,7
+222,7
@@
while true; do
exit 0
;;
--autoremove | --auto-remove)
exit 0
;;
--autoremove | --auto-remove)
-
autoremove
=true
+
AUTOREMOVE
=true
shift 1
;;
--aur-helper)
shift 1
;;
--aur-helper)
@@
-261,7
+261,7
@@
if [[ "${DIRECT_PACMAN}" = false ]]; then
_usage
_exit 1
fi
_usage
_exit 1
fi
- COMMAND="${1}"
+ COMMAND="${1
,,
}"
shift 1
shift 1