mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
don't overwrite mshell if no input received on stdin during install
This commit is contained in:
parent
ca61597a19
commit
aa1542cfc0
@ -59,10 +59,13 @@ fi
|
||||
const InstallCommand = `
|
||||
printf "\n##N{\"type\": \"init\", \"notfound\": true, \"uname\": \"%s|%s\"}\n" "$(uname -s)" "$(uname -m)";
|
||||
mkdir -p ~/.mshell/;
|
||||
cat > ~/.mshell/mshell.temp;
|
||||
mv ~/.mshell/mshell.temp ~/.mshell/mshell;
|
||||
chmod a+x ~/.mshell/mshell;
|
||||
~/.mshell/mshell --single --version
|
||||
cat > ~/.mshell/mshell.temp;
|
||||
if [[ -s ~/.mshell/mshell.temp ]]
|
||||
then
|
||||
mv ~/.mshell/mshell.temp ~/.mshell/mshell;
|
||||
chmod a+x ~/.mshell/mshell;
|
||||
~/.mshell/mshell --single --version
|
||||
fi
|
||||
`
|
||||
|
||||
const RunCommandFmt = `%s`
|
||||
|
Loading…
Reference in New Issue
Block a user