You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: solr/bin/solr
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -873,6 +873,12 @@ if [[ "$SCRIPT_CMD" == "delete" ]]; then
873
873
exit$?
874
874
fi
875
875
876
+
# Prevent any zk subcommands from going through with out invoking zk command
877
+
if [[ "$SCRIPT_CMD"=="upconfig"||$SCRIPT_CMD=="downconfig"||$SCRIPT_CMD=="cp"||$SCRIPT_CMD=="rm"||$SCRIPT_CMD=="mv"||$SCRIPT_CMD=="ls"||$SCRIPT_CMD=="mkroot" ]];then
878
+
print_short_zk_usage "You must invoke this subcommand using the zk command. bin/solr zk $SCRIPT_CMD."
0 commit comments