diff options
author | Manoel Brunnen | 2016-09-26 15:06:39 +0200 |
---|---|---|
committer | Manoel Brunnen | 2016-09-26 15:16:52 +0200 |
commit | 653c6e929bd474e6c2443d5826b5c34675e69ed0 (patch) | |
tree | 1d0d172b8d4b74440a0e45222a194ee9d73b3de9 | |
parent | 18311d8c58e81f2b0a21e4087d0c573da38f1c55 (diff) | |
download | aur-653c6e929bd474e6c2443d5826b5c34675e69ed0.tar.gz |
fetcher babbelt jetzt ab systemd log level 5
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rwxr-xr-x | fetcher.sh | 9 |
4 files changed, 9 insertions, 11 deletions
@@ -1,7 +1,7 @@ pkgbase = fetcher pkgdesc = Automatic adding, commiting, pushing or pulling of git repos via a systemd service unit. pkgver = 1.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/mbrunnen/fetcher install = fetcher.install arch = any @@ -9,7 +9,7 @@ pkgbase = fetcher depends = git source = fetcher.sh source = fetcher.service - md5sums = 70b877d59239bb454d435876fb900cc9 + md5sums = fbe83829a00085425cd73fe66eddf288 md5sums = dab6b2be6bfbd3f2b77b000814e1e9fd pkgname = fetcher diff --git a/.gitignore b/.gitignore index 6803660e373a..ee2c906bbbe6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /src /pkg *.tar.* +*.orig @@ -2,7 +2,7 @@ pkgname=fetcher pkgver=1.2 -pkgrel=1 +pkgrel=2 pkgdesc="Automatic adding, commiting, pushing or pulling of git repos via a systemd service unit." arch=('any') url="https://github.com/mbrunnen/fetcher" @@ -13,7 +13,7 @@ install="$pkgname.install" source=("fetcher.sh" "fetcher.service") noextract=() -md5sums=('c8caa52bf3ac2c3b2f0a82330c1ab5b0' +md5sums=('fbe83829a00085425cd73fe66eddf288' 'dab6b2be6bfbd3f2b77b000814e1e9fd') package() { @@ -22,5 +22,3 @@ package() { } # vim:set ft=sh: -md5sums=('70b877d59239bb454d435876fb900cc9' - 'dab6b2be6bfbd3f2b77b000814e1e9fd') diff --git a/fetcher.sh b/fetcher.sh index 01a5b724221f..e215846c87a6 100755 --- a/fetcher.sh +++ b/fetcher.sh @@ -21,9 +21,9 @@ exec 3>&1 4>&2 # Restore stdout and stderr trap 'exec 2>&4 1>&3' 0 1 2 3 # Use tee to redirect fd 1 to logfile.out and to stdout -exec 1> >(tee >(systemd-cat --identifier="$script_name" --priority="debug") >&3) +exec 1> >(tee >(systemd-cat --identifier="$script_name" --priority="info") >&3) # Use tee to redirect fd 2 to logfile.err and to stderr -exec 2> >(tee >(systemd-cat --identifier="$script_name" --priority="warning") >&4) +exec 2> >(tee >(systemd-cat --identifier="$script_name" --priority="notice") >&4) #================================= Functions ================================= function config_usage() { @@ -100,11 +100,11 @@ for ((i=0; i < ${#lines[@]}; i++)); do if $dryrun; then cmd="git -C $path add -n -A" cmd="$cmd && git -C $path commit -n -v" - cmd="$cmd && git -C $path push -n $remote $branch" + cmd="$cmd; git -C $path push -n $remote $branch" else cmd="git -C $path add -A" cmd="$cmd && git -C $path commit -v" - cmd="$cmd && git -C $path push $remote $branch" + cmd="$cmd; git -C $path push $remote $branch" fi ;; pull) @@ -133,4 +133,3 @@ done echo '==============================================================================' echo "fetcher processed successfully $configfile." echo '==============================================================================' - |