Give readonly attribute to core variables
Signed-off-by: Aoi K <koizumi.aoi@kyoko-project.wer.ee> git-svn-id: file:///srv/svn/repo/kanako/trunk@7 62e5d677-aa6e-8c4a-b8cb-b9416171cb8e
This commit is contained in:
parent
334729396a
commit
c037b22277
6
kanako
6
kanako
@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
conf_dir="${conf_dir:-$HOME/.config/kanako}"
|
readonly conf_dir="${conf_dir:-$HOME/.config/kanako}"
|
||||||
key_dir="${key_dir:-$HOME/.kanako}"
|
readonly key_dir="${key_dir:-$HOME/.kanako}"
|
||||||
store_dir="${store_dir:-$HOME/.kanako-store}"
|
readonly store_dir="${store_dir:-$HOME/.kanako-store}"
|
||||||
|
|
||||||
if test -d "${store_dir}"; then
|
if test -d "${store_dir}"; then
|
||||||
cd "${store_dir}"
|
cd "${store_dir}"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
conf_dir="$HOME/.config/kanako"
|
readonly conf_dir="$HOME/.config/kanako"
|
||||||
key_dir="$HOME/.kanako"
|
readonly key_dir="$HOME/.kanako"
|
||||||
store_dir="$HOME/.kanako-store"
|
readonly store_dir="$HOME/.kanako-store"
|
||||||
|
|
||||||
echo "Initializing kanako(1)"
|
echo "Initializing kanako(1)"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user