mirror of
https://github.com/ivabus/pantry
synced 2024-09-20 08:40:50 +03:00
don't upload ~
even if it expands in the shell
This commit is contained in:
parent
5b8a94584e
commit
a9344e6e62
|
@ -123,6 +123,10 @@ for (const [index, pkg] of pkgs.entries()) {
|
|||
// mirror the sources
|
||||
if (srcs[index] != "~") {
|
||||
const src = usePrefix().join(srcs[index])
|
||||
if (src.isDirectory()) {
|
||||
// we almost certainly expanded `~` to the user’s home directory
|
||||
continue
|
||||
}
|
||||
const srcKey = useOffLicense("s3").key({
|
||||
pkg: stowed.pkg,
|
||||
type: "src",
|
||||
|
|
Loading…
Reference in a new issue