fix: Can not trigger aptss download when firstly installed

This commit is contained in:
2025-01-26 02:49:29 +00:00
committed by Gitee
parent a6b3a1871f
commit 1156090ed0

View File

@@ -123,6 +123,7 @@ if [ ! -f "$1" ]; then
PACKAGE_NAME=$(echo "$FILENAME" | sed -r 's/^([^_]+)_.*$/\1/') PACKAGE_NAME=$(echo "$FILENAME" | sed -r 's/^([^_]+)_.*$/\1/')
VERSION=$(echo "$FILENAME" | sed -r 's/^[^_]+_([^_]+)_.*$/\1/') VERSION=$(echo "$FILENAME" | sed -r 's/^[^_]+_([^_]+)_.*$/\1/')
pushd ${FILEPATH} pushd ${FILEPATH}
aptss ssupdate
aptss download ${PACKAGE_NAME}=${VERSION} aptss download ${PACKAGE_NAME}=${VERSION}
popd popd
if [ ! -f "$1" ]; then if [ ! -f "$1" ]; then