Feat: added automatic flexibility for regular and root user.

This commit is contained in:
rhuan-pk 2023-07-31 05:23:30 -03:00
parent 7b2badbb40
commit 741a8657bf
1 changed files with 5 additions and 2 deletions

View File

@ -1,11 +1,14 @@
#!/bin/bash
LICENSE='/usr/share/licenses/i3lock-color/LICENSE'
SUDO='sudo'
[ "$UID" -eq 0 ] && unset SUDO
./build.sh
cd build
sudo make install
sudo install -Dm644 ../LICENSE "$LICENSE"
$SUDO make install
$SUDO install -Dm644 ../LICENSE "$LICENSE"
echo "i3lock-color installed. The binary and manpage listing are \`i3lock'.
The license can be found at $LICENSE