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