From ea0ea5f92557383c065dc1986092094f2ce17b37 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Sun, 21 Jun 2020 19:24:53 +0300 Subject: [PATCH] scripts/bin/{revbump,update-checksum}: strip traling / from package name --- scripts/bin/revbump | 1 + scripts/bin/update-checksum | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/bin/revbump b/scripts/bin/revbump index 43706cbc6..dac6828d2 100755 --- a/scripts/bin/revbump +++ b/scripts/bin/revbump @@ -34,6 +34,7 @@ if git status >/dev/null 2>&1; then fi for package in "${@}"; do + package="${package%%/}" buildsh_path="${REPO_ROOT}/packages/${package}/build.sh" if [ ! -f "${buildsh_path}" ]; then diff --git a/scripts/bin/update-checksum b/scripts/bin/update-checksum index cffa9f649..74bf86338 100755 --- a/scripts/bin/update-checksum +++ b/scripts/bin/update-checksum @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Package update helper script which sets new SHA-256 for source bundle. ## @@ -36,6 +36,7 @@ if git status >/dev/null 2>&1; then fi for package in "${@}"; do + package="${package%%/}" buildsh_path="${REPO_ROOT}/packages/${package}/build.sh" if [ ! -f "${buildsh_path}" ]; then