Skip to content

Commit 9a1d389

Browse files
committed
readonly version
1 parent ef68a36 commit 9a1d389

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/addbookmark.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
## 143 - received SIGTERM
5959
## ------------------
6060

61-
version='addbookmark.sh 3.0.0'
61+
readonly VERSION='addbookmark.sh 3.0.0'
6262

6363
set -efu
6464
umask '0022'
@@ -230,7 +230,7 @@ parser_definition() {
230230
param bookmarkFile -f --file init:'bookmarkFile="${HOME}/bookmark.html"' var:FILE -- 'ブックマークファイルを指定する'
231231
param position -p --position init:='bottom' pattern:'bottom | none | top' var:"'bottom' | 'none' | 'top'" -- 'ブックマークアイテムを追加する位置を指定する'
232232
disp :usage -h --help -- 'このヘルプを表示して終了する'
233-
disp version -v --version -- 'バージョン情報を表示して終了する'
233+
disp VERSION -v --version -- 'バージョン情報を表示して終了する'
234234

235235
msg -- '' 'Exit Status:' \
236236
' 0 - successful termination' \
@@ -359,7 +359,7 @@ parse() {
359359
usage
360360
exit 0 ;;
361361
'-v'|'--version')
362-
echo "${version}"
362+
echo "${VERSION}"
363363
exit 0 ;;
364364
--)
365365
shift

0 commit comments

Comments
 (0)