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
7
quickget
7
quickget
|
@ -3361,10 +3361,9 @@ function create_config() {
|
||||||
|
|
||||||
# Use command -v command to check if quickemu is in the system's PATH and
|
# 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.
|
# fallback to checking if quickemu is in the current directory.
|
||||||
function resolve_quickemu() {
|
function resolve_quickemu() {
|
||||||
if command -v quickemu >/dev/null 2>&1; then
|
command -v quickemu || \
|
||||||
command -v quickemu
|
if [ -x "./quickemu" ]; then
|
||||||
elif [ -f "./quickemu" ]; then
|
|
||||||
echo "$(pwd)/quickemu"
|
echo "$(pwd)/quickemu"
|
||||||
else
|
else
|
||||||
echo "quickemu not found" >&2
|
echo "quickemu not found" >&2
|
||||||
|
|
Loading…
Reference in New Issue