Closed simnalamburt closed 8 years ago
Before
curl -L \ https://github.com/kinoru/chips/releases/download/1.0.0/chips_linux_x64 \ > ~/.local/bin/chips \ ; and chmod +x ~/.local/bin/chips
After
curl -Lo ~/.local/bin/chips --create-dirs \ https://github.com/kinoru/chips/releases/download/1.0.0/chips_linux_x64 \ ; and chmod +x ~/.local/bin/chips
-o
If ~/.local/bin/chips doesn't exist, it makes an error below:
~/.local/bin/chips
An error occurred while redirecting file '/Users/<username>/.local/bin/chips' open: No such file or directory
--create-dirs
If ~/.local/bin directory doesn't exist, it makes an error below:
~/.local/bin
Warning: Failed to create the file /Users/<username>/.local/bin/chips: No Warning: such file or directory curl: (23) Failed writing body (0 != 16384)
Before
After
Explained
1.
-o
If
~/.local/bin/chips
doesn't exist, it makes an error below:2.
--create-dirs
If
~/.local/bin
directory doesn't exist, it makes an error below: