Replaced cp with symbolic link (ln -s) for better maintainability
Instead of copying the script file manually to ~/.local/bin using 'cp', we now recommend creating a symbolic link with 'ln -s'. This makes updates easier, as any changes pulled from the Git repository are immediately reflected in the linked binary without needing to copy the file again. It’s also safer in the long term, as users won’t accidentally run outdated versions from ~/.local/bin.
This commit is contained in:
parent
ac24ecfe42
commit
552c170959
@ -26,10 +26,8 @@ sudo apt install python3 python3-pip git python3-dnspython python3-requests
|
||||
cd
|
||||
git clone https://git.bouquet24.de/paase/chkip.git
|
||||
cd chkip
|
||||
|
||||
|
||||
mkdir -p ~/.local/bin
|
||||
cp chkip.py ~/.local/bin/chkip
|
||||
ln -s "$PWD/chkip.py" ~/.local/bin/chkip
|
||||
chmod +x ~/.local/bin/chkip
|
||||
|
||||
echo -e "alias chkip='python3 ~/.local/bin/chkip'" >> $HOME/.bashrc
|
||||
|
Loading…
Reference in New Issue
Block a user