diff options
-rwxr-xr-x | nix-script-switch.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nix-script-switch.sh b/nix-script-switch.sh index 69a04fb..547a2c9 100755 --- a/nix-script-switch.sh +++ b/nix-script-switch.sh @@ -186,6 +186,12 @@ dbg "ARGS = $ARGS" [[ ! -d "$WD" ]] && stderr "No directory: $WD" && exit 1 +[[ "$COMMAND" != "switch" ]] && [[ $APPEND_CHANNEL_GEN == 1 ]] && { + stderr "Cannot append channel generation if non-switch build," + stderr "as this is currently not supported." + exit 1 +} + TAG_TARGET=$(__quiet__ __git "$WD" rev-parse HEAD) stdout "Tag in config will be generated at '$TAG_TARGET'" |