#!/bin/bash
cd "$(dirname "$0")" || exit
function run() {
local pattern=$1
local files=( $pattern )
local arguments="${@:2}" # ignores the first argument
./"${files[0]}" $arguments
}
run "OpenRGB_*.appimage" $@
Created
July 26, 2023 20:23
-
-
Save gturi/111fcf408d776d5b6b00620f21c56176 to your computer and use it in GitHub Desktop.
Match a file with a glob pattern and run it
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment