Hello. I have a custom APT repo (for squeeze/wheezy/jessie) for my software and Readme page for it with install instructions.
It contains the following line: echo "deb http://SOMEURL/debian/current $(lsb_release -sc) main"|sudo tee /etc/apt/sources.list.d/SOMEREPO.list recently I found this line is wrong: 1) lsb_release is not available in some debian installs (minimal install? rasberry-pi ? ) 2) if user uses FISH as login shell , this expression "$(lsb_release -sc)" won't work. 3) probably some users would want to use "stable" instead of "wheezy" etc. What is the recommended way to write such install instructions?