fix auto flake update script

This commit is contained in:
oxapentane - 2023-05-01 06:14:27 +02:00
parent ca0db6f9de
commit e2f260f856
Signed by: oxapentane
GPG Key ID: 91FA5E5BF9AA901C
1 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ let
};
realizeFlake = with pkgs; "${writeScriptBin "realize-flake" ''
#! ${runtimeShell} -e
set -x
NAME=$1
if [ $NAME = "borken-data-hoarder" ]; then
@ -24,8 +25,8 @@ let
fi
cd /tmp
if [ -d $DIR_DUMP_DVB ]; then
cd $DIR_NIX_CONFG
if [ -d $DIR_NIX_CONFIG ]; then
cd $DIR_NIX_CONFIG
git fetch origin
git reset --hard origin/$BRANCH
else