Fixes a problem on Cygwin where 'uname -r' gives:
3.2.0(0.340/5/3)
which, when used as the name of a directory, actually represents a
directory named '3.2.0(0.340', containing a subdirectory named '5'
containing a subdirectory named '3)'.
fi
else
ID=$( uname -s )
- VERSION_ID=$( uname -r )
+ # remove trailing text after actual version
+ VERSION_ID=$( uname -r | sed "s/\([0-9\.]*\).*/\1/")
fi
COLLECTION=$( cat COLLECTION )
META_DATA_DIR=Metadata/${COLLECTION}/${ID}/${VERSION_ID}