summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgcd.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcd.sh b/gcd.sh
index 9548b1d..b956286 100755
--- a/gcd.sh
+++ b/gcd.sh
@@ -16,5 +16,7 @@ gcdn() {
echo $r
}
-gcdn $*
+if test $# -gt 0 ; then
+ gcdn $*
+fi