From f11f162aadeac5a5cbb4bab38541a9bbc06aa1a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Molinero=20Fern=C3=A1ndez?= Date: Mon, 21 Jan 2019 21:54:46 +0100 Subject: [PATCH] Removed bash dependency from shell scripts --- src/musikcube/musikcube.in | 11 ++++++----- src/musikcubed/musikcubed.in | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/musikcube/musikcube.in b/src/musikcube/musikcube.in index d80c7368c..31482554a 100644 --- a/src/musikcube/musikcube.in +++ b/src/musikcube/musikcube.in @@ -1,5 +1,6 @@ -#!/usr/bin/env bash -pushd @musikcube_INSTALL_DIR@/share/musikcube/ > /dev/null -{ - ./musikcube "$@" && popd -} || popd > /dev/null +#!/bin/sh + +set -eu + +cd "@musikcube_INSTALL_DIR@"/share/musikcube/ +exec ./musikcube "$@" diff --git a/src/musikcubed/musikcubed.in b/src/musikcubed/musikcubed.in index 447ad6036..8b65bc32a 100644 --- a/src/musikcubed/musikcubed.in +++ b/src/musikcubed/musikcubed.in @@ -1,5 +1,6 @@ -#!/usr/bin/env bash -pushd @musikcube_INSTALL_DIR@/share/musikcube/ > /dev/null -{ - ./musikcubed "$@" && popd -} || popd > /dev/null +#!/bin/sh + +set -eu + +cd "@musikcube_INSTALL_DIR@"/share/musikcube/ +exec ./musikcubed "$@"