Move into finished executable

This commit is contained in:
2023-03-09 23:01:12 -05:00
parent d57bbc5e94
commit e76c187905

View File

@@ -119,6 +119,8 @@
newalan = pkgs.runCommand "New Alan Deployscript" {
nativeBuildInputs = builtins.attrValues checks;
} ''
echo << 'DOC'
#!${pkgs.runtimeShell}
export tmp=$(mktemp -d)
pushd $tmp
${pkgs.wget}/bin/wget \
@@ -127,16 +129,14 @@
${pkgs.tree}/bin/tree
cd src
sops -i -d secrets/config.nix
echo << 'DOC'
#!${pkgs.runtimeShell}
export flake="$tmp/src/deploy"
# ${pkgs.runtimeShell} ./secrets/deploy.sh
DOC >> $out
chmod +x $out
popd
rm -rf $tmp
echo Listing $tmp
ls $tmp
DOC >> $out
chmod +x $out
'';
};
};