Skip to content

Commit

Permalink
Improves install scripts by using verb files
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Jan 28, 2024
1 parent ec920c2 commit b78787a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
18 changes: 15 additions & 3 deletions scripts/install_mt4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
# Script to install MT4 platform using winetricks.
[ -n "$OPT_NOERR" ] || set -e
[ -n "$OPT_TRACE" ] && set -x
CWD="$( (cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" 2> /dev/null && pwd -P) || pwd -P)"
CWD="$(
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" 2> /dev/null
pwd -P
)"
type winetricks > /dev/null

# Load variables.
Expand Down Expand Up @@ -32,7 +35,16 @@ echo "Installing .NET..." >&2
winetricks -q dotnet472

echo "Installing platform..." >&2
winetricks -q -v mt4
#winetricks -q -v mt4
winetricks -q "$CWD"/verb/install_mt4.verb

. "$CWD"/.vars.inc.sh
if [ -n "$TERMINAL5_DIR" ]; then
echo "Terminal path: $TERMINAL5_DIR" >&2
echo "Installation successful." >&2
else
echo "Installation failed!" >&2
exit 1
fi

echo "Installation successful." >&2
echo "${BASH_SOURCE[0]} done." >&2
1 change: 1 addition & 0 deletions scripts/install_mt5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ else
echo "Installation failed!" >&2
exit 1
fi

echo "${BASH_SOURCE[0]} done." >&2

0 comments on commit b78787a

Please sign in to comment.