Skip to content

Commit

Permalink
Address review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
udda1996 committed Jan 10, 2024
1 parent 6cc67b8 commit 297798b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/bin/bal
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
if [ "$(uname)" == "Darwin" ]
then
# If it's macOS, set an environmental variable for architecture
export MAC_ARCHITECTURE=$(uname -m)
export BALLERINA_MAC_ARCHITECTURE=$(uname -m)
fi
$JAVA_COMMAND -jar $CURRENT_PATH/../lib/ballerina-command-@version@.jar "$@"
EXIT_CODE=$?
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/ballerinalang/command/util/OSUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ private static boolean isSolaris() {

private static boolean isArmArchitecture() {
try {
String macArchitecture = System.getenv("MAC_ARCHITECTURE");
String macArchitecture = System.getenv("BALLERINA_MAC_ARCHITECTURE");

return macArchitecture != null && macArchitecture.equals("arm64");
} catch (SecurityException e) {
Expand Down

0 comments on commit 297798b

Please sign in to comment.