Skip to content

Commit

Permalink
env bash instead of "hardcoded" /bin/bash
Browse files Browse the repository at this point in the history
  • Loading branch information
PartyWumpus committed Aug 14, 2024
1 parent 7e40918 commit 59f25f1
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions defaults/scripts/Extensions/Epic/epic-launcher.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# These need to be exported because it does not get executed in the context of the plugin.
export DECKY_PLUGIN_RUNTIME_DIR="${HOME}/homebrew/data/Junk-Store"
export DECKY_PLUGIN_DIR="${HOME}/homebrew/plugins/Junk-Store"
Expand Down Expand Up @@ -174,7 +174,7 @@ eval "`echo -e $QUOTED_ARGS`" &>> "${DECKY_PLUGIN_LOG_DIR}/${ID}.log"
sync-saves
# echo "#!/bin/bash" > run.sh
# echo "#!/usr/bin/env bash" > run.sh
# echo "${CMD} ${ARGS}" >> run.sh
# chmod +x run.sh
# ./run.sh && rm run.sh
Expand Down
2 changes: 1 addition & 1 deletion defaults/scripts/Extensions/Epic/get-epic-args.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
PLATFORM=Epic
export DECKY_PLUGIN_RUNTIME_DIR="${HOME}/homebrew/data/Junk-Store"
export DECKY_PLUGIN_DIR="${HOME}/homebrew/plugins/Junk-Store"
Expand Down
2 changes: 1 addition & 1 deletion defaults/scripts/Extensions/Epic/install_deps.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
DOWNLOAD_LOCATION=https://github.com/ebenbruyns/legendary-flatpak/releases/latest/download/legendary.flatpak
function uninstall() {
echo "Uninstalling flatpaks"
Expand Down
2 changes: 1 addition & 1 deletion defaults/scripts/Extensions/Epic/login.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# These need to be exported because it does not get executed in the context of the plugin.
export DECKY_PLUGIN_RUNTIME_DIR="${HOME}/homebrew/data/Junk-Store"
export DECKY_PLUGIN_DIR="${HOME}/homebrew/plugins/Junk-Store"
Expand Down
2 changes: 1 addition & 1 deletion defaults/scripts/Extensions/Epic/settings.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
EPICCONF="${DECKY_PLUGIN_DIR}/scripts/epic-config.py"
export LEGENDARY="/bin/flatpak run com.github.derrod.legendary"
PROTON_TRICKS="/bin/flatpak run com.github.Matoking.protontricks"
Expand Down
2 changes: 1 addition & 1 deletion defaults/scripts/Extensions/Epic/store.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Register actions with the junk-store.sh script
ACTIONS+=("install-overlay" "update-overlay" "remove-overlay" "registry-fix" "update-umu-id")
Expand Down
2 changes: 1 addition & 1 deletion defaults/scripts/install_deps.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
function install(){
echo "==================================="
echo " Dependecy installation starting"
Expand Down
2 changes: 1 addition & 1 deletion defaults/scripts/junk-store.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source "./scripts/settings.sh"
mkdir "${DECKY_PLUGIN_RUNTIME_DIR}/scripts/Extensions" -p
source "${DECKY_PLUGIN_DIR}/scripts/shared.sh"
Expand Down
2 changes: 1 addition & 1 deletion defaults/scripts/settings.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

if [[ -z "${DECKY_PLUGIN_DIR}" ]]; then
export DECKY_PLUGIN_DIR="${HOME}/homebrew/plugins/Junk-Store"
Expand Down
2 changes: 1 addition & 1 deletion defaults/scripts/shared.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

function init() {
for platform in "${PLATFORMS[@]}"; do
Expand Down
2 changes: 1 addition & 1 deletion defaults/scripts/shared/GameSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def generate_env_settings_json(self, json_file):
return self.generate_bash_env_settings(content)

def generate_bash_env_settings(self, config_json):
script = "#!/bin/bash\n"
script = "#!/usr/bin/env bash\n"
config = json.loads(config_json)
sections = config['Sections']
for section in sections:
Expand Down

0 comments on commit 59f25f1

Please sign in to comment.