always sort by number which prepends the module

pull/5/head
Tomas M 2012-11-22 16:38:30 -06:00
parent 46edde0bfc
commit db9bbd864d
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ union_append_bundles()
debug_log "union_append_bundles" "$*"
echo_green_star
echo "Adding bundles to union"
ls -1 "$1" | grep '.'$BEXT'$' | sort | while read BUNDLE; do
ls -1 "$1" | grep '.'$BEXT'$' | sort -n | while read BUNDLE; do
echo "* $BUNDLE"
mkdir -p "$2/$BUNDLE"
mount -o loop -t squashfs "$1/$BUNDLE" "$2/$BUNDLE"