scripts/bin/{revbump,update-checksum}: strip traling / from package name

This commit is contained in:
Leonid Pliushch 2020-06-21 19:24:53 +03:00
parent 41627ba420
commit ea0ea5f925
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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