refactor: remove redundant code from resolve_quickemu() (#1404)
* fix: remove redundant command call * fix: test local quickemu is executable
This commit is contained in:
parent
42ee12d51c
commit
17f3cd7eeb
5
quickget
5
quickget
|
@ -3362,9 +3362,8 @@ 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
|
||||
command -v quickemu || \
|
||||
if [ -x "./quickemu" ]; then
|
||||
echo "$(pwd)/quickemu"
|
||||
else
|
||||
echo "quickemu not found" >&2
|
||||
|
|
Loading…
Reference in New Issue