#!/usr/bin/env bash
-if [ -z "$NIXOPS" ]; then
- echo "Please set NIXOPS to the nixops command"
+if [ -z "$NIXOPS_ENV_LOADED" ]; then
+ echo "Please load the environment with direnv"
exit 1;
fi
finish() {
rm -rf "$TEMP"
- $NIXOPS set-args --unset privateFiles
+ nixops set-args --unset privateFiles
}
trap finish EXIT
for file in $files; do
pass show "Nixops/files/$file" > $TEMP/$file
done
-$NIXOPS set-args --argstr privateFiles "$TEMP"
+nixops set-args --argstr privateFiles "$TEMP"
"$@"