Deduce the filename in developer_console.sh instead of hardcoding it

This commit is contained in:
cmdr2 2022-10-29 20:25:11 +05:30
parent fc11018158
commit 33e25d9241

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")"
if [ "$0" == "bash" ]; then if [ "$0" == "bash" ]; then
echo "Opening Stable Diffusion UI - Developer Console.." echo "Opening Stable Diffusion UI - Developer Console.."
echo "" echo ""
@ -35,5 +37,6 @@ if [ "$0" == "bash" ]; then
echo "" echo ""
else else
bash --init-file developer_console.sh file_name=$(basename "${BASH_SOURCE[0]}")
bash --init-file "$file_name"
fi fi