Skip to content

chmod options used are not portable on OSX #320

@asgrim

Description

@asgrim

I have the following error when trying to self-update on macOS, not sure if it's related:

$ pie self-update                                                                                                              
🥧 PHP Installer for Extensions (PIE) 1.0.0, from The PHP Foundation
You are running PHP 8.4.10
Target PHP installation: 8.4.10 nts, on Linux/OSX/etc arm64 (from /opt/homebrew/Cellar/php/8.4.10/bin/php)
You are currently running PIE version 1.0.0
✅ Verified the new PIE version
Password:

In Process.php line 269:
                                                                                                                                      
  The command "'/usr/bin/sudo' 'chmod' '--reference=/opt/homebrew/bin/pie' '/private/var/folders/89/dyv9lh291b7dmhx3gt7_0hqr0000gn/T  
  /pie_tmp_442n8f56nm5v7M2T12g'" failed.                                                                                              
                                                                                                                                      
  Exit Code: 1(General error)                                                                                                         
                                                                                                                                      
  Working directory: /Users/pronskiy/projects/redditjs                                                                                
                                                                                                                                      
  Output:                                                                                                                             
  ================                                                                                                                    
                                                                                                                                      
                                                                                                                                      
  Error Output:                                                                                                                       
  ================                                                                                                                    
  chmod: illegal option -- -                                                                                                          
  usage:        chmod [-fhv] [-R [-H | -L | -P]] [-a | +a | =a  [i][# [ n]]] mode|entry file ...                                                                                                                                                                              
        chmod [-fhv] [-R [-H | -L | -P]] [-E | -C | -N | -i | -I] file ...                                                                                                                                                                                                    

Originally posted by @pronskiy in #238

Metadata

Metadata

Assignees

Labels

maintainer investigatingThis ticket is being investigated by maintainers. Please check with us before contributing PRs etc!

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions