mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
use blade as conmmands template (#444)
* use blade as conmmands template * fix lint * fix ssl
This commit is contained in:
15
resources/views/ssh/services/nodejs/uninstall-nodejs.blade.php
Executable file
15
resources/views/ssh/services/nodejs/uninstall-nodejs.blade.php
Executable file
@ -0,0 +1,15 @@
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
|
||||
@if ($default)
|
||||
if ! nvm unalias default; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
||||
if ! nvm deactivate; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
||||
@endif
|
||||
|
||||
if ! nvm uninstall {{ $version }}; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
Reference in New Issue
Block a user