You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sushiro
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,12 @@
1
1
#!/usr/bin/env bash
2
2
#
3
-
# sushiro 0.0.5
3
+
# sushiro 0.0.6
4
4
# (C) 2018 redpeacock78
5
5
# GPLv3 is applied to this script
6
6
7
7
######################################
8
8
#Randomly display the menu of Sushiro.
9
9
#Grobals:
10
-
# LINES
11
10
# CACHE
12
11
#Arguments:
13
12
# -h
@@ -23,33 +22,30 @@
23
22
24
23
###USAGE###
25
24
[[ "${1}"="-h" ]] && \
26
-
printf"sushiro version 0.0.5\n\nUSAGE: sushiro [OPTIONS] [ANYTHING]\nOptions:\n -l [NUMBER]\n Randomly display the number of specified menus\n (By default it display one item)\n -p [MENU_NAME]\n Display price of menu corresponding to name\n (If not specified,all menus and prices will be displayed)\n -k [MENU_NAME]\n Display the calorie of the name corresponding menu\n (If not specified,all menus and calories are displayed)\n -a\n Display names of all menus(158 species in total)\n -f\n Fetch menus from www.akindo-sushiro.co.jp\n (The menu will be saved in /usr/local/share/sushiro_cache)\n *In case of linuxbrew it is 'directory where linuxbrew is installed/share/sushiro_cache'.*\n"&& \
25
+
printf"sushiro version 0.0.6\n\nUSAGE: sushiro [OPTIONS] [ANYTHING]\nOptions:\n -l [NUMBER]\n Randomly display the number of specified menus\n (By default it display one item)\n -p [MENU_NAME]\n Display price of menu corresponding to name\n (If not specified,all menus and prices will be displayed)\n -k [MENU_NAME]\n Display the calorie of the name corresponding menu\n (If not specified,all menus and calories are displayed)\n -a\n Display names of all menus(158 species in total)\n -f\n Fetch menus from www.akindo-sushiro.co.jp\n (The menu will be saved in /usr/local/share/sushiro_cache)\n *In case of linuxbrew it is 'directory where linuxbrew is installed/share/sushiro_cache'.*\n"&& \
27
26
exit 0
28
27
29
28
30
29
###DEFAULT_PARAMETER###
31
-
LINES=1
30
+
#LINES=1
32
31
33
32
###FETCH###
34
33
#CACHE="/usr/local/share/sushiro_cache"
35
34
CACHE=$(dirname "${0}"| sed 's#bin#share/sushiro_cache#')
0 commit comments