diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-31 18:52:49 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-05 19:53:19 -0600 |
commit | 1316ba7aa96c69ea541f1b7b3715aad5d1c8eb14 (patch) | |
tree | df265c278a4bcb4823a725b9d78936d6f6fc67ef /src/toru/toru-utils | |
parent | 29230b22081f9982f02d1c2fa46834089422d098 (diff) |
[all tools]: use conf.sh (and libremessages if necessary)
Diffstat (limited to 'src/toru/toru-utils')
-rwxr-xr-x | src/toru/toru-utils | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/toru/toru-utils b/src/toru/toru-utils index 316e6b8..acf3776 100755 --- a/src/toru/toru-utils +++ b/src/toru/toru-utils @@ -1,27 +1,15 @@ #!/bin/bash -source /etc/abs.conf -source /etc/libretools.conf +. libremessages +. $(librelib conf.sh) +load_files libretools +check_vars libretools TORUPATH || exit 1 LASTSYNCFILE=${TORUPATH}/lastsync FORCE=false QUIET=false DEBUG=false -# usage : in_array( $needle, $haystack ) -function in_array { - [[ $2 ]] || return 1 # Not found - - local needle=$1; shift - local item - - for item in "$@"; do - [[ ${item#@} = $needle ]] && return 0 # Found - done - - return 1 # Not Found -} - # Stores the lastsync date lastsync() { local lastsyncfile |