From 0f32702413127a36612a23f599092bc2620d2d09 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Mon, 24 Feb 2025 14:50:11 -0500 Subject: [PATCH] AutoYADM commit: 2025-02-24 14:50:11 --- .zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index b30fb259..f8804e00 100644 --- a/.zshrc +++ b/.zshrc @@ -152,7 +152,11 @@ function mksh() { /usr/bin/chmod +x "$filepath" echo "$filepath created." else - echo "$filepath already exists or is invalid." + if [[ "$filepath" == ".sh" ]]; then + echo "You must supply an argument!" + else + echo "$filepath already exists" + fi fi }