Skip to content
This repository was archived by the owner on Apr 5, 2023. It is now read-only.

Commit d54a452

Browse files
author
Cas Roberts
committed
Update layout for efficiency
1 parent fcb2bb5 commit d54a452

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

list

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
#!/bin/bash
22

3-
if [ $1 ]; then
4-
compgen -ac | grep $1
5-
else
6-
compgen -ac
7-
fi
3+
[[ $1 ]] && compgen -ac | grep $1 || compgen -ac

0 commit comments

Comments
 (0)