|
Line 0
Link Here
|
|
|
1 |
--- azure/cli/command_modules/storage/azcopy/util.py.orig 2019-12-04 23:30:55 UTC |
| 2 |
+++ azure/cli/command_modules/storage/azcopy/util.py |
| 3 |
@@ -41,6 +41,8 @@ class AzCopy(object): |
| 4 |
file_url = base_url.format('linux', 'tar.gz') |
| 5 |
elif self.system == 'Darwin': |
| 6 |
file_url = base_url.format('darwin', 'zip') |
| 7 |
+ elif self.system == 'FreeBSD': |
| 8 |
+ raise CLIError('Azcopy ({}) binary not available, follow instructions at https://wiki.freebsd.org/Ports/sysutils/py-azure-cli'.format(self.system)) |
| 9 |
else: |
| 10 |
raise CLIError('Azcopy ({}) does not exist.'.format(self.system)) |
| 11 |
try: |
| 12 |
@@ -163,7 +165,7 @@ def _get_default_install_location(): |
| 13 |
if not home_dir: |
| 14 |
return None |
| 15 |
install_location = os.path.join(home_dir, r'.azcopy\azcopy.exe') |
| 16 |
- elif system in ('Linux', 'Darwin'): |
| 17 |
+ elif system in ('Linux', 'Darwin', 'FreeBSD'): |
| 18 |
install_location = os.path.expanduser(os.path.join('~', 'bin/azcopy')) |
| 19 |
else: |
| 20 |
install_location = None |