Fix update-keydb

This commit is contained in:
T 2025-02-13 16:42:45 +01:00
parent 80573055d9
commit ba2946706b
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
Package: foodoord
Version: 3.3.2
Version: 3.3.3
Maintainer: Tobi <tobi@chaospott.de>
Architecture: all
Description: Control the doors of the club, ja!

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
@ -8,7 +8,7 @@ temp_outfile=$dest.tmp
if [ ! -e "$dest/.git/config" ]; then
#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
#echo "Repo exists, updating..."
git -C "$dest" fetch --quiet && git -C "$dest" merge --quiet origin/master master