summarylogtreecommitdiffstats
path: root/fix-cli.sh
blob: 9386cb7632b27ae75b490ee9f4a542776a194a01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/bash

set -e

if [ -z "$NW_PACKAGE_DIR" ]; then
    echo -e "\e[1;31m\$NW_PACKAGE_DIR is empty\e[0m" >&2
    exit 1
fi

cd "$NW_PACKAGE_DIR"

sed -i 's#AppData/Local/\${global.userDirName}/User Data/Default#.config/\${global.userDirName}/Default#g' js/common/cli/index.js
sed -i 's#USERPROFILE#HOME#g' js/common/cli/index.js