Añadida página man y cambios en install.sh y lch

This commit is contained in:
radikal
2020-07-15 15:18:28 +02:00
parent 1312541ce6
commit 8c85d2db14
4 changed files with 85 additions and 6 deletions
+23 -1
View File
@@ -1,3 +1,25 @@
#!/bin/bash
cp lch /usr/bin/lch
if [ "$UID" != "0" ]; then
echo " Only root can execute this script, sorry."
echo " Try 'sudo ./install.sh'"
exit 0
fi
echo ""
echo "======================"
echo " Installing lch"
echo "======================"
echo ""
cp lch /usr/bin/lch
echo " Copied lch in /usr/bin"
cp lch.1 /usr/man/man1/lch.1
gzip /usr/man/man1/lch.1
echo " Copied manpage in /usr/man/man1"
echo ""
echo "============================="
echo " lch installed successfully."
echo "============================="
echo ""
echo "Run 'lch --help' to see options."
exit 0