Skip to content

Commit

Permalink
Install and path-directories adjusted #31
Browse files Browse the repository at this point in the history
  • Loading branch information
rat-moonshine committed Feb 24, 2022
1 parent 6b033cb commit 09a70eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion InstallerSharedCore/src/actionScripts/utils/Parser.as
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ package actionScripts.utils
if (HelperConstants.IS_MACOS) return "Command Line Tools";
return HelperConstants.DEFAULT_INSTALLATION_PATH.nativePath + File.separator +"Git"+ File.separator +"git-"+ version;
case ComponentTypes.TYPE_SVN:
if (HelperConstants.IS_MACOS) return "/opt/local/bin/Subversion";
if (HelperConstants.IS_MACOS) return "/opt/local/bin/svn";
return HelperConstants.DEFAULT_INSTALLATION_PATH.nativePath + File.separator +"SVN"+ File.separator +"slik-svn-"+ version;
case ComponentTypes.TYPE_NODEJS:
return HelperConstants.DEFAULT_INSTALLATION_PATH.nativePath + File.separator +"NodeJS"+ File.separator +"node-v"+ version;
Expand Down
2 changes: 1 addition & 1 deletion MoonshineSDKInstaller/src/components/HelperInstaller.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@
// in that case we should make sure everything place in
// the folder that SDK Installer selects
var installedPath:File = new File(itemDownloading.installToPath);
var files:Array = installedPath.exists ? installedPath.getDirectoryListing() : null;
var files:Array = (installedPath.exists && installedPath.isDirectory) ? installedPath.getDirectoryListing() : null;
if (files && (files.length == 1))
{
FileUtils.moveFolderToDestinationFolderAsync(files[0], installedPath, onFileFoldersMoved, onFileFoldersMoveError,
Expand Down

0 comments on commit 09a70eb

Please sign in to comment.