Skip to content

Commit

Permalink
Fixing ruby executable path
Browse files Browse the repository at this point in the history
  • Loading branch information
robertobermudez committed Apr 5, 2024
1 parent d42fb95 commit 06dea3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion banshy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash



PREFIX=$HOME
GEM_PATH="${PREFIX}/banshy/lib/gems"
GEM_HOME="${PREFIX}/banshy/lib/gems"
Expand All @@ -23,4 +25,6 @@ export PATH=$PATH:$GEM_HOME'/bin'

ruby --version

$(ruby $PREFIX/banshy/banshy.rb)
RUBY_PATH="${1:-$(which ruby)}"

$($RUBY_PATH $PREFIX/banshy/banshy.rb)
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ GEM_PATH="${PREFIX}/banshy/lib/gems"
GEM_HOME="${PREFIX}/banshy/lib/gems"

echo "gem: --install-dir $GEM_PATH"

RUBY_PATH=$(which ruby)
export GEM_PATH
export GEM_HOME
export PATH=$PATH:$GEM_HOME'/bin'
Expand All @@ -39,7 +39,7 @@ Encoding=UTF-8
Version=0.1
Type=Application
Terminal=false
Exec=env GEM_PATH=$GEM_PATH env GEM_HOME=$GEM_HOME ${PREFIX}/banshy/banshy.sh
Exec=${PREFIX}/banshy/banshy.sh $RUBY_PATH
Name=Banshy!
Icon=${PREFIX}/banshy/resources/banshy_logo.png
EOF

0 comments on commit 06dea3c

Please sign in to comment.