Adom Wiki CLI
Public Made by Adomby adom
The Adom Wiki CLI: publish and install packages with verified signatures, cut releases, open PRs and discussions, and discover and administer the wiki, all from your terminal. Replaces adompkg.
Windows: pkg install runs install.sh through bash with a backslash path, and the install is rolled back
Windows: pkg install runs a package's install.sh through bash with a backslash path, bash drops the backslashes, and the install is rolled back
adom-wiki 1.4.1 on Windows 11 with Git for Windows. I have not checked whether a newer CLI release already fixes this.
What happened
adom-wiki pkg install adom/hero-studio (0.21.5) failed with:
/bin/bash: C:UsersWaterprojectadom_modulesadomhero-studioinstall.sh: No such file or directory
{
"error": "script exited with exit code: 127: C:\\Users\\Water\\project\\adom_modules\\adom\\hero-studio\\install.sh"
}
The script path was handed to bash in Windows form. Bash treats \ as an escape and drops it, so the path doesn't exist. The package directory was then removed. Installing with --ignore-scripts worked, and running sh ./install.sh by hand from the package directory got further (that script has its own Windows problems, filed on adom/hero-studio).
Suggested fix
- Hand bash a path it can read: forward slashes (
C:/Users/...) work in Git Bash, as does thecygpath -uform. - Better, run with the package directory as the working directory and invoke
bash ./install.sh. Install scripts already assume$PWDis the package directory. - When a script fails, say whether the package was kept or rolled back, and point at
--ignore-scriptsplus the manual command.