Commit 749f1089 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

Fix calling uname across platforms

parent 34088886
......@@ -14,7 +14,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
OS_NAME=$(/usr/bin/uname -s)
OS_NAME=$(uname -s)
if [ $? -ne 0 ]; then
OS_NAME=$(/bin/uname -s)
fi
OS_NAME=${OS_NAME:0:6}
if [[ "$OS_NAME" = "CYGWIN" ]]
......
......@@ -14,7 +14,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
OS_NAME=$(/bin/uname -s)
OS_NAME=$(uname -s)
if [ $? -ne 0 ]; then
OS_NAME=$(/bin/uname -s)
fi
OS_NAME=${OS_NAME:0:6}
if [[ "$OS_NAME" = "CYGWIN" ]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment