Open p-shahi opened 3 years ago
This behavior happens on Linux (brson was using this OS). While it works properly on mac.
I did some experiments with the install script on Linux.
Other than the standard one line command, I separate it into two steps:
sh
file
curl -fsSL https://sdk.dfinity.org/install.sh > dfx-installer.sh
Run the script
Run directly will work perfectly, i.e. CTRL-C will get back to original shell
sh dfx-installer.sh
Mimic the one-liner then it behaves as brson described.
sh -ci "$(cat dfx-installer.sh)"
$ sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
trap exit 2