summaryrefslogtreecommitdiffstats
path: root/src/main.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.sh')
-rw-r--r--src/main.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/main.sh b/src/main.sh
index 6b57b71..74a3bca 100644
--- a/src/main.sh
+++ b/src/main.sh
@@ -41,7 +41,7 @@ conf_key=
lock=
exit_status=
-handle_sig()
+_handle_sig()
{
local sig="${1}"
shift 1
@@ -55,7 +55,7 @@ handle_sig()
fi
}
-init_sigs()
+_init_sigs()
{
local i=
local sig=
@@ -69,13 +69,13 @@ init_sigs()
sig="$(kill -l ${i} 2>/dev/null)" || continue
case "${sig}" in
'HUP' | 'INT' | 'QUIT' | 'ABRT' | 'ALRM' | 'TERM')
- trap "handle_sig ${i}" ${i}
+ trap "_handle_sig ${i}" ${i}
;;
esac
done
}
-get_options()
+_get_options()
{
local opt=
@@ -90,7 +90,7 @@ get_options()
return 0
}
-lock()
+_lock()
{
mkdir -p "${base_dir}/.db"
lock="${base_dir}/.db/lock"
@@ -99,7 +99,7 @@ lock()
fi
}
-get_conf()
+_get_conf()
{
local old_dir=
@@ -132,11 +132,11 @@ get_conf()
init()
{
- lock
- get_conf
+ _lock
+ _get_conf
}
-unlock()
+_unlock()
{
rm -f "${lock}"
}
@@ -145,7 +145,7 @@ fini()
{
update_feeds
collect_garbage
- unlock
+ _unlock
}
main()
@@ -161,10 +161,10 @@ main()
builddir=''
fi
- init_sigs
+ _init_sigs
load_locale
- get_options "${@}"
+ _get_options "${@}"
shift $((${OPTIND} - 1))
base_dir="${opt_b:-.}"