jailmaker icon indicating copy to clipboard operation
jailmaker copied to clipboard

Following the documentation for creating an Alias will overwrite the ~/.bashrc file

Open vesper1978 opened this issue 2 years ago • 1 comments

Currently the documentation is using the following to create an alias to jailmkr.py

echo "alias jlmkr=\"sudo '/mnt/mypool/jailmaker/jlmkr.py'\"" > ~/.bashrc

This will overwrite the contents of the ~/.bashrc file. Instead it should either be:

echo "alias jlmkr=\"sudo '/mnt/mypool/jailmaker/jlmkr.py'\"" >> ~/.bashrc

or

echo "alias jlmkr=\"sudo '/mnt/mypool/jailmaker/jlmkr.py'\"" | tee -a ~/.bashrc

Both of these commands will append, not overwrite.

vesper1978 avatar May 29 '24 15:05 vesper1978

Fixed. Thanks!

Jip-Hop avatar May 29 '24 15:05 Jip-Hop