Make *.sh scripts more clear on what is being created.

This commit is contained in:
Matthew Bauer 2017-02-06 18:18:09 -06:00
parent 9d5a2d8b41
commit 1eb0583a69
2 changed files with 14 additions and 2 deletions

View File

@ -26,4 +26,9 @@ expr="with import <nixpkgs> {}; with import ./. {}; nix-bootstrap { name = \"$ta
out=$(nix-store --no-gc-warning -r $(nix-instantiate --no-gc-warning -E "$expr"))
cp -f $out $target
if [ -z "$out" ]; then
echo "$0 failed. Exiting."
exit 1
else
cp -f $out $target
fi

View File

@ -23,4 +23,11 @@ expr="with import <nixpkgs> {}; with import ./. {}; appimage (appdir { name = \"
out=$(nix-store --no-gc-warning -r $(nix-instantiate --no-gc-warning -E "$expr"))
cp -f $out $target
if [ -z "$out" ]; then
echo "$0 failed. Exiting."
exit 1
else
appimage=$out/*.AppImage
cp -f $appimage .
echo "AppImage created at $(basename $appimage)"
fi