From 552c1709596b9f60808e51f89da261fbab330ebf Mon Sep 17 00:00:00 2001 From: Pascal Bouquet Date: Sat, 19 Apr 2025 15:28:53 +0200 Subject: [PATCH] Replaced cp with symbolic link (ln -s) for better maintainability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- INSTALL.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 88135f1..7db265a 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -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