contrib/lsupgrade.sh: fix path output

remotes/1699402720531464663/tmp_refs/heads/stable
Matthias Schiffer 2015-04-28 04:51:32 +02:00
parent 55d95f16b3
commit 472087a7b1
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ fi
pushd "$(dirname "$0")/.." >/dev/null
find package packages -name Makefile | while read makefile; do
find ./package packages -name Makefile | while read makefile; do
dir="$(dirname "$makefile")"
pushd "$dir" >/dev/null
@ -36,7 +36,7 @@ find package packages -name Makefile | while read makefile; do
package="$(basename "$dir")"
for file in "${SUFFIX}"/*; do
echo "${GREEN}$(basename "${file}")${RESET}" "(${BLUE}${repo}${RESET}/${dirname}/${RED}${package}${RESET}/${SUFFIX})"
echo "${GREEN}$(basename "${file}")${RESET}" "(${BLUE}${repo}${RESET}/${dirname}${dirname:+/}${RED}${package}${RESET}/${SUFFIX})"
done
popd >/dev/null
done | sort