Latest
This commit is contained in:
parent
db21a233a6
commit
355703286e
1 changed files with 3 additions and 3 deletions
|
@ -52,17 +52,17 @@
|
||||||
{{ includeTemplate "universal/profile" }}
|
{{ includeTemplate "universal/profile" }}
|
||||||
{{ includeTemplate "universal/logg" }}
|
{{ includeTemplate "universal/logg" }}
|
||||||
|
|
||||||
if command -v code > /dev/null && command -v pnpm > /dev/null && [ -f "${XDG_DATA_HOME:-$HOME/.local/share}/vscode/package.json" ]; then
|
if command -v code > /dev/null && command -v npm > /dev/null && [ -f "${XDG_DATA_HOME:-$HOME/.local/share}/vscode/package.json" ]; then
|
||||||
### Install linter fallback node_modules / package.json to system or home directory
|
### Install linter fallback node_modules / package.json to system or home directory
|
||||||
if sudo cp -f "${XDG_DATA_HOME:-$HOME/.local/share}/vscode/package.json" /package.json; then
|
if sudo cp -f "${XDG_DATA_HOME:-$HOME/.local/share}/vscode/package.json" /package.json; then
|
||||||
logg info 'Successfully copied linter fallback configurations package.json to /package.json'
|
logg info 'Successfully copied linter fallback configurations package.json to /package.json'
|
||||||
logg info 'Installing system root directory node_modules'
|
logg info 'Installing system root directory node_modules'
|
||||||
cd / && sudo pnpm i --no-lockfile || EXIT_CODE=$?
|
cd / && sudo npm i --no-package-lock || EXIT_CODE=$?
|
||||||
else
|
else
|
||||||
logg warn 'Unable to successfully copy linter fallback configurations package.json to /package.json'
|
logg warn 'Unable to successfully copy linter fallback configurations package.json to /package.json'
|
||||||
logg info 'Installing linter fallback configurations node_modules to home directory instead'
|
logg info 'Installing linter fallback configurations node_modules to home directory instead'
|
||||||
cp -f "${XDG_DATA_HOME:-$HOME/.local/share}/vscode/package.json" "$HOME/package.json"
|
cp -f "${XDG_DATA_HOME:-$HOME/.local/share}/vscode/package.json" "$HOME/package.json"
|
||||||
cd ~ && pnpm i --no-lockfile || EXIT_CODE=$?
|
cd ~ && npm i --no-package-lock || EXIT_CODE=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Log message if install failed
|
### Log message if install failed
|
||||||
|
|
Loading…
Reference in a new issue