File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -343,18 +343,15 @@ USAGE: keg run [SCRIPT]"
343
343
(unless noninteractive
344
344
(error " `keg-command' is to be used only with --batch" ))
345
345
(let* ((opraw (car command-line-args-left))
346
- (op (when opraw (intern opraw)))
346
+ (op (if opraw
347
+ (intern opraw)
348
+ (if (file-exists-p " Keg" )
349
+ 'install 'help )))
347
350
(args (cdr command-line-args-left))
348
351
(no-install (keg--no-install-p op keg-no-install-commands)))
349
352
(when (not (memq op keg-global-commands))
350
353
(keg-initialize))
351
354
(cond
352
- ((and
353
- (memq op keg-global-commands)
354
- (not (file-exists-p " Keg" )))
355
- (keg--princ " Missing Keg file in current directory" )
356
- (keg--princ " Exec `keg init' to create Keg file" )
357
- (keg--princ " " ))
358
355
((and
359
356
(not (memq op keg-global-commands))
360
357
(not (file-exists-p " Keg" )))
You can’t perform that action at this time.
0 commit comments