mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-03-23 05:49:43 +08:00
@@ -376,10 +376,10 @@ function install_in_ace_env() {
|
||||
$ace_cmd "ensure_aptss_exist"
|
||||
|
||||
# 首先尝试dry-run测试
|
||||
if ! $ace_cmd aptss install --dry-run '$deb_path'; then
|
||||
if ! $ace_cmd aptss install --dry-run "$deb_path"; then
|
||||
echo "初始dry-run测试失败,尝试更新后重试..."
|
||||
$ace_cmd "aptss update"
|
||||
if ! $ace_cmd aptss install --dry-run '$deb_path'; then
|
||||
if ! $ace_cmd aptss install --dry-run "$deb_path"; then
|
||||
echo "dry-run测试仍然失败,放弃安装"
|
||||
echo "OMG_IT_GOES_WRONG"
|
||||
return 1
|
||||
@@ -388,7 +388,7 @@ function install_in_ace_env() {
|
||||
|
||||
# dry-run成功后执行实际安装
|
||||
$ace_cmd aptss install store.spark-app.app-runtime-base --no-install-recommends -yfq
|
||||
if $ace_cmd dpkg -i '$deb_path' || aptss install '$deb_path' -yfq; then
|
||||
if $ace_cmd dpkg -i "$deb_path" || aptss install "$deb_path" -yfq; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user