Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit 4a855aa

Browse files
committed
aoscarchive: minor
1 parent 33ffd15 commit 4a855aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/autobuild-aoscarchive

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ fi
2727
[ "$ARCH" == amd64 ] && ARCH=x86_64
2828
prefixprint(){ [ "$SORT" == 1 ] && echo -ne "$NAME_PREFIX$1"; }
2929
mvln(){ # not using cp -s because we want the main part to be in the target
30-
mv "$1" "$2" || aberr "Move from [$1] to [$2] failed."
31-
ln -s "$2" "$1" || aberr "Link from [$1] to [$2] failed."
30+
mv "$1" "$2" || aberr "Move from [$1] to [$2] failed: $?"
31+
ln -s "$2" "$1" || aberr "Link from [$2] to [$1] failed: $?"
3232
}
3333

3434
# regex match
3535
if [ "$TREE" == 1 ];
3636
then
37-
for _layout in $DIR_TREE; do [[ $1 =~ ^$_layout ]] && break; done || abwarn "$1 NOT SORTED"
37+
for _layout in {a..k} lib{a..z} {l..z} _UNSORTED; do [[ $1 == "$_layout"* ]] && break; done || abwarn "$1 NOT SORTED"
3838
else
3939
abinfo "Not using an alphabetical tree."
4040
fi

0 commit comments

Comments
 (0)