1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23:42:51 -05:00

fix shellcheck

This commit is contained in:
bbedward
2025-12-13 00:29:20 -05:00
parent 7641171a01
commit ce4aca9a72
2 changed files with 4 additions and 7 deletions

View File

@@ -239,7 +239,6 @@ if [ "$IS_GIT_PACKAGE" = false ] && [ -n "$GIT_REPO" ]; then
NEW_VERSION="${BASE_VERSION}ppa${PPA_NUM}" NEW_VERSION="${BASE_VERSION}ppa${PPA_NUM}"
fi fi
CHANGELOG_UPDATED=false
if [ "$CURRENT_VERSION" != "$NEW_VERSION" ]; then if [ "$CURRENT_VERSION" != "$NEW_VERSION" ]; then
if [ "$PPA_NUM" -gt 1 ]; then if [ "$PPA_NUM" -gt 1 ]; then
info "Updating changelog for rebuild (PPA number incremented to $PPA_NUM)" info "Updating changelog for rebuild (PPA number incremented to $PPA_NUM)"
@@ -270,7 +269,6 @@ if [ "$IS_GIT_PACKAGE" = false ] && [ -n "$GIT_REPO" ]; then
echo "$CHANGELOG_CONTENT" >>debian/changelog echo "$CHANGELOG_CONTENT" >>debian/changelog
fi fi
success "Version updated to $NEW_VERSION" success "Version updated to $NEW_VERSION"
CHANGELOG_UPDATED=true
CHANGELOG_VERSION=$(dpkg-parsechangelog -S Version) CHANGELOG_VERSION=$(dpkg-parsechangelog -S Version)
info "Writing updated changelog back to repository..." info "Writing updated changelog back to repository..."

View File

@@ -161,7 +161,7 @@ else
done done
echo " a. all" echo " a. all"
echo "" echo ""
read -p "Select package (1-${#AVAILABLE_PACKAGES[@]}, a): " selection read -rp "Select package (1-${#AVAILABLE_PACKAGES[@]}, a): " selection
if [[ "$selection" == "a" ]] || [[ "$selection" == "all" ]]; then if [[ "$selection" == "a" ]] || [[ "$selection" == "all" ]]; then
PACKAGE_INPUT="all" PACKAGE_INPUT="all"
@@ -212,8 +212,7 @@ fi
TEMP_DIR_FILE="$PARENT_DIR/.ppa_build_temp_${PACKAGE_NAME}" TEMP_DIR_FILE="$PARENT_DIR/.ppa_build_temp_${PACKAGE_NAME}"
if [ -f "$TEMP_DIR_FILE" ]; then if [ -f "$TEMP_DIR_FILE" ]; then
source "$TEMP_DIR_FILE" BUILD_TEMP_DIR=$(grep -oP 'PPA_BUILD_TEMP_DIR=\K.*' "$TEMP_DIR_FILE")
BUILD_TEMP_DIR="$PPA_BUILD_TEMP_DIR"
rm -f "$TEMP_DIR_FILE" rm -f "$TEMP_DIR_FILE"
info "Using build artifacts from temp directory: $BUILD_TEMP_DIR" info "Using build artifacts from temp directory: $BUILD_TEMP_DIR"
CHANGES_FILE=$(find "$BUILD_TEMP_DIR" -maxdepth 1 -name "${PACKAGE_NAME}_*_source.changes" -type f 2>/dev/null | sort -V | tail -1) CHANGES_FILE=$(find "$BUILD_TEMP_DIR" -maxdepth 1 -name "${PACKAGE_NAME}_*_source.changes" -type f 2>/dev/null | sort -V | tail -1)