Change HOST variable in dotman to HOSTNAME for sh interpreter

This commit is contained in:
Wiktor Zykubek 2020-03-09 20:43:25 +01:00
parent 7d71b5d666
commit 78adf056b5

4
dotman
View File

@ -112,10 +112,10 @@ copy_configs() {
cp -r * ~/.config/ cp -r * ~/.config/
if [ "$HOST" = "pc" ]; then if [ "$HOSTNAME" = "pc" ]; then
echo "Use pc config" echo "Use pc config"
mv ~/.config/polybar/config.pc ~/.config/polybar/config mv ~/.config/polybar/config.pc ~/.config/polybar/config
elif [ "$HOST" = "laptop" ]; then elif [ "$HOSTNAME" = "laptop" ]; then
echo "Use laptop config..." echo "Use laptop config..."
mv ~/.config/polybar/config.laptop ~/.config/polybar/config mv ~/.config/polybar/config.laptop ~/.config/polybar/config
fi fi