Files
ssh-menu/install

23 lines
522 B
Bash
Executable File

#! /bin/bash
if [ ! -e /usr/bin/rofi ]; then
echo "error: rofi doesn't seem to be installed"
exit 1
fi
mkdir -p ~/.ssh-menu
# Install rofi-config-own or default rofi-config
if [ -e rofi-config ]; then
cp rofi-config ~/.ssh-menu/rofi-config
else
cp rofi-config-sample ~/.ssh-menu/rofi-config
fi
# Install rofi-forge-cache-own script or default rofi-forge-cache
if [ -e generate-hosts ]; then
cp generate-hosts ~/.ssh-menu/generate-hosts
else
cp generate-hosts-sample ~/.ssh-menu/generate-hosts
fi