Fix update-keydb
This commit is contained in:
parent
80573055d9
commit
ba2946706b
2
debian/DEBIAN/control
vendored
2
debian/DEBIAN/control
vendored
@ -1,5 +1,5 @@
|
|||||||
Package: foodoord
|
Package: foodoord
|
||||||
Version: 3.3.2
|
Version: 3.3.3
|
||||||
Maintainer: Tobi <tobi@chaospott.de>
|
Maintainer: Tobi <tobi@chaospott.de>
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Description: Control the doors of the club, ja!
|
Description: Control the doors of the club, ja!
|
||||||
|
4
debian/usr/sbin/foodoor-update-keydb
vendored
4
debian/usr/sbin/foodoor-update-keydb
vendored
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
|
export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
|
||||||
@ -8,7 +8,7 @@ temp_outfile=$dest.tmp
|
|||||||
|
|
||||||
if [ ! -e "$dest/.git/config" ]; then
|
if [ ! -e "$dest/.git/config" ]; then
|
||||||
#echo "Repo does not exist, trying to clone..."
|
#echo "Repo does not exist, trying to clone..."
|
||||||
git -C "$dest" clone --quiet --single-branch --depth=1 ssh://git.chaospott.de/Keyverwaltung/foodoor-keys.git "$dest"
|
git clone --quiet --single-branch --depth=1 ssh://git.chaospott.de/Keyverwaltung/foodoor-keys.git "$dest"
|
||||||
else
|
else
|
||||||
#echo "Repo exists, updating..."
|
#echo "Repo exists, updating..."
|
||||||
git -C "$dest" fetch --quiet && git -C "$dest" merge --quiet origin/master master
|
git -C "$dest" fetch --quiet && git -C "$dest" merge --quiet origin/master master
|
||||||
|
Loading…
x
Reference in New Issue
Block a user