Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/ui/openleetcodeui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

run_exe() {
for D in OpenLeetCodeUI; do
if [ -f "${D}/OpenLeetCodeUI.exe" ]; then
echo "Running OpenLeetCodeUI.exe in ${D}"
"${D}/OpenLeetCodeUI.exe" --problem_builds_dir=$(pwd)
if [ -f "${D}/OpenLeetCodeUI" ]; then
echo "Running OpenLeetCodeUI in ${D}"
"${D}/OpenLeetCodeUI" --problem_builds_dir=$(pwd)
exit
fi
done
echo "No OpenLeetCodeUI.exe found in $(pwd)/OpenLeetCodeUI directory."
echo "No OpenLeetCodeUI found in $(pwd)/OpenLeetCodeUI directory."
}

pushd "$(dirname "$0")" > /dev/null
run_exe
popd > /dev/null
popd > /dev/null