Skip to content

Commit

Permalink
Remove useless OS type detection from config.sh (#10).
Browse files Browse the repository at this point in the history
The OS type detection is no longer used anywhere, so we can remove it.
  • Loading branch information
s3rvac committed Dec 13, 2017
1 parent a75a44f commit b19112d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# dev

* (nothing yet)
* Fix: Remove useless OS type detection when running decompilations (#10).

# v3.0 (2017-12-13)

Expand Down
23 changes: 0 additions & 23 deletions scripts/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,6 @@ if [ -z "$DECOMPILER_CONFIG" ]; then
DECOMPILER_CONFIG="./config.sh"
fi

#
# Detect OS type (win / linux / linux64)
#
get_SYS()
{
if [[ $(uname -s) == *Linux* ]]; then
echo "linux"
elif [[ $(uname -s) == *MINGW* ]] || [[ $(uname -s) == *MSYS* ]]; then
echo "win"
else
echo "unknown"
fi
}

##
## Settings.
##
SYS="$(get_SYS)"
if [ "$SYS" != "win" -a "$SYS" != "linux" ]; then
echo "Error: Unknown OS" >&2
exit 1
fi

##
## Paths (everything has to be without the ending slash '/').
##
Expand Down

0 comments on commit b19112d

Please sign in to comment.