Skip to content

Commit

Permalink
fix: sigh on windows bash pwd has /c/ but nodejs require does not lik…
Browse files Browse the repository at this point in the history
…e that
  • Loading branch information
starpit committed Apr 12, 2023
1 parent 78fb889 commit f467fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/builder/bin/prescan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if [ -z "$KUI_PRESCAN" ]; then
fi

echo "compiling plugin registry $CLIENT_HOME to ${KUI_PRESCAN-default location}"
MAIN=$(node -e "console.log(require(\"$CLIENT_HOME/package.json\").main)")
MAIN=$(node -e "console.log(require(\"$CLIENT_HOME/package.json\".replace(/^\/c\//, \"c:/\")).main)")
MAIN_PROXY=$(echo "$MAIN" | sed -E 's/\.min\.js/-proxy.min.js/')
if [ -f "$MAIN" ]
then KUI_HEADLESS=true node "$MAIN" -- kui internal scan
Expand Down

0 comments on commit f467fa1

Please sign in to comment.