source: code/trunk/addons/kanako_menu@ 15

Last change on this file since 15 was 15, checked in by koizumi.aoi, 3 years ago

Worth a tag?

Signed-off-by: Aoi K <koizumi.aoi@…>

  • Property svn:executable set to on
File size: 402 bytes
Line 
1#!/bin/sh -e
2readonly kanako_conf_dir="${conf_dir:-$HOME/.config/kanako}"
3readonly kanako_store_dir="${store_dir:-$HOME/.kanako-store}"
4
5if test -f "${kanako_conf_dir}"/kanako.conf; then
6 . "${kanako_conf_dir}"/kanako.conf
7else
8 echo "Configuration file has not been found!"
9 exit 1
10fi
11
12find . -name '*.enc' | sort | sed 's,^\./,,;s,\.enc$,,' | "${kanako_menu_cmd}" | xargs $(which kanako) -c
Note: See TracBrowser for help on using the repository browser.