Skip to content

Commit

Permalink
Fix constant initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Amaël Sikel authored and cesarferreira committed Nov 25, 2020
1 parent 4f616d5 commit 898b1e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dryrun.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def pick_device
puts "Picked #{@device.name.to_s.green}" unless @device.nil?
end

def ANDROID_SDK_ROOT_is_defined
def android_sdk_root_is_defined
@sdk = if !Gem.win_platform?
`echo $ANDROID_SDK_ROOT`.delete('\n')
else
Expand All @@ -160,7 +160,7 @@ def wipe_temporary_folder
end

def call
unless ANDROID_SDK_ROOT_is_defined
unless android_sdk_root_is_defined
puts "\nWARNING: your #{'$ANDROID_SDK_ROOT'.yellow} is not defined\n"
puts "\nhint: in your #{'~/.bashrc'.yellow} or #{'~/.bash_profile'.yellow} add:\n #{"export ANDROID_SDK_ROOT='/Users/cesarferreira/Library/Android/sdk/'".yellow}"
puts "\nNow type #{'source ~/.bashrc'.yellow}\n\n"
Expand Down

0 comments on commit 898b1e5

Please sign in to comment.