summaryrefslogtreecommitdiff
path: root/nya.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nya.sh')
-rwxr-xr-xnya.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/nya.sh b/nya.sh
index dcaa785..9667f3c 100755
--- a/nya.sh
+++ b/nya.sh
@@ -15,8 +15,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+binary=$( readlink -f miaowe )
# To debug, uncomment and move >&p to end of line.
coproc nc irc.libera.chat 6667 # |tee /dev/stderr
-./miaowe $1 <&p >&p # |tee /dev/stderr
+(cd $2 && exec $binary $1) <&p >&p # |tee /dev/stderr
pkill nc