]> git.immae.eu Git - perso/Immae/Config/Nix.git/blame - nixops/scripts/push_environment
Add wdiff tool
[perso/Immae/Config/Nix.git] / nixops / scripts / push_environment
CommitLineData
5f5efa6f
IB
1#!/bin/bash
2
3if [ -z "$NIXOPS_CONFIG_PASS_SUBTREE_PATH" ]; then
4 echo "Please set NIXOPS_CONFIG_PASS_SUBTREE_PATH to the password-store subtree path"
5 exit 1;
6fi
7
8if [ -z "$NIXOPS_CONFIG_PASS_SUBTREE_REMOTE" ]; then
9 echo "Please set NIXOPS_CONFIG_PASS_SUBTREE_REMOTE to the password-store subtree remote name"
10 exit 1;
11fi
12
13pass git subtree push --prefix=$NIXOPS_CONFIG_PASS_SUBTREE_PATH $NIXOPS_CONFIG_PASS_SUBTREE_REMOTE master