Skip to content

Commit

Permalink
Merge branch 'kinafu-feature2'
Browse files Browse the repository at this point in the history
  • Loading branch information
rugk committed Sep 2, 2017
2 parents b27db98 + 77e7e4e commit 3babd8c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions borgcron_starter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
# LICENSE: MIT license, see LICENSE.md
#

CURRENT_DIR="$( dirname "$0" )"
# dir where config files are stored
CONFIG_DIR="$( dirname "$0" )/config"
CONFIG_DIR="$CURRENT_DIR/config"

cli_help() {
echo "Usage:"
Expand Down Expand Up @@ -39,7 +40,7 @@ case "$1" in
'' ) # process all backup config files in $CONFIG_DIR
for configfile in $CONFIG_DIR/*.sh;
do
./borgcron.sh "$( get_full_path "$configfile" )"
"$CURRENT_DIR/borgcron.sh" "$( get_full_path "$configfile" )"
done
;;
--help|-h|-? ) # show help message
Expand All @@ -52,7 +53,7 @@ case "$1" in
configfile="$( echo "$configfile"|sed 's/.sh$//')"

if [ -e "$CONFIG_DIR/$configfile.sh" ]; then
./borgcron.sh "$( get_full_path "$CONFIG_DIR/$configfile.sh" )"
"$CURRENT_DIR/borgcron.sh" "$( get_full_path "$CONFIG_DIR/$configfile.sh" )"
else
echo "The backup settings file \"$configfile.sh\" could not be found." >&2
fi
Expand Down

0 comments on commit 3babd8c

Please sign in to comment.