mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-06-02 12:50:51 -04:00
fix: extract release zip directly to OSPOS directory
The release zip files extract at root level without a subdirectory
This commit is contained in:
@@ -140,9 +140,9 @@ if [ ! -f ospos.zip ] || [ ! -s ospos.zip ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ASSET_NAME=$(basename "$ASSET_URL" .zip)
|
||||
unzip -q ospos.zip -d ospos-temp
|
||||
mv ospos-temp/$ASSET_NAME ospos
|
||||
mkdir -p ${OSPOS_DIR}
|
||||
cp -r ospos-temp/* ${OSPOS_DIR}/
|
||||
rm -rf ospos-temp ospos.zip
|
||||
|
||||
echo -e "${COLOR_GREEN}Downloaded OSPOS ${OSPOS_VERSION}${COLOR_RESET}"
|
||||
|
||||
Reference in New Issue
Block a user