better file names, simplify generate-hosts-sample script

This commit is contained in:
2022-12-05 12:12:45 +01:00
parent bb9bd2f72f
commit cb20aeaeaf
7 changed files with 21 additions and 20 deletions

12
install
View File

@@ -8,15 +8,15 @@ fi
mkdir -p ~/.ssh-menu
# Install rofi-config-own or default rofi-config
if [ -e rofi-config-own ]; then
cp rofi-config-own ~/.ssh-menu/rofi-config
if [ -e rofi-config ]; then
cp rofi-config ~/.ssh-menu/rofi-config
else
cp rofi-config ~/.ssh-menu/rofi-config
cp rofi-config-sample ~/.ssh-menu/rofi-config
fi
# Install rofi-forge-cache-own script or default rofi-forge-cache
if [ -e rofi-forge-cache-own ]; then
cp rofi-forge-cache-own ~/.ssh-menu/rofi-forge-cache
if [ -e generate-hosts ]; then
cp generate-hosts ~/.ssh-menu/generate-hosts
else
cp rofi-forge-cache ~/.ssh-menu/rofi-forge-cache
cp generate-hosts-sample ~/.ssh-menu/generate-hosts
fi