aboutsummaryrefslogblamecommitdiff
path: root/nixops/scripts/pull_environment
blob: e508a2e880993ad23e7081694c23439520fec8eb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                                         
#!/bin/bash

if [ -z "$NIXOPS_CONFIG_PASS_SUBTREE_PATH" ]; then
  echo "Please set NIXOPS_CONFIG_PASS_SUBTREE_PATH to the password-store subtree path"
  exit 1;
fi

if [ -z "$NIXOPS_CONFIG_PASS_SUBTREE_REMOTE" ]; then
  echo "Please set NIXOPS_CONFIG_PASS_SUBTREE_REMOTE to the password-store subtree remote name"
  exit 1;
fi

pass git subtree pull --prefix=$NIXOPS_CONFIG_PASS_SUBTREE_PATH $NIXOPS_CONFIG_PASS_SUBTREE_REMOTE master