Skip to content

Commit

Permalink
refactor: remove redundant code from resolve_quickemu() (#1404)
Browse files Browse the repository at this point in the history
* fix: remove redundant command call

* fix: test local quickemu is executable
  • Loading branch information
philclifford authored Sep 30, 2024
1 parent 42ee12d commit 17f3cd7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -3361,10 +3361,9 @@ function create_config() {

# Use command -v command to check if quickemu is in the system's PATH and
# fallback to checking if quickemu is in the current directory.
function resolve_quickemu() {
if command -v quickemu >/dev/null 2>&1; then
command -v quickemu
elif [ -f "./quickemu" ]; then
function resolve_quickemu() {
command -v quickemu || \
if [ -x "./quickemu" ]; then
echo "$(pwd)/quickemu"
else
echo "quickemu not found" >&2
Expand Down

0 comments on commit 17f3cd7

Please sign in to comment.