don't upload ~ even if it expands in the shell

This commit is contained in:
Jacob Heider 2023-01-04 21:03:39 -05:00
parent 5b8a94584e
commit a9344e6e62
No known key found for this signature in database
GPG key ID: A98011B5713535BF

View file

@ -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 users home directory
continue
}
const srcKey = useOffLicense("s3").key({
pkg: stowed.pkg,
type: "src",