fix: use built-in macOS trash command
This commit is contained in:
parent
48add79ad4
commit
4bd93ee65e
@ -137,22 +137,14 @@ configure_install() {
|
||||
}
|
||||
|
||||
configure_rm() {
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
command_exists trash && return
|
||||
else
|
||||
command_exists gtrash && return
|
||||
fi
|
||||
[ "$(uname)" = "Darwin" ] && return
|
||||
command_exists gtrash && return
|
||||
[ $offline -eq 1 ] && return
|
||||
|
||||
if ! confirm_action "要配置 rm 吗?" "Y"; then
|
||||
return
|
||||
fi
|
||||
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
brew install trash
|
||||
return
|
||||
fi
|
||||
|
||||
local arch=$(uname -m)
|
||||
case "$arch" in
|
||||
aarch64) arch="arm64" ;;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user