on master help sign in
Make *.sh scripts more clear on what is being created.
1eb0583Matthew Bauer
nix-bundle.sh+6−1
@@ -26,4 +26,9 @@ expr="with import <nixpkgs> {}; with import ./. {}; nix-bootstrap { name = \"$ta
26
26
27out=$(nix-store --no-gc-warning -r $(nix-instantiate --no-gc-warning -E "$expr"))
27out=$(nix-store --no-gc-warning -r $(nix-instantiate --no-gc-warning -E "$expr"))
28
28
29+if [ -z "$out" ]; then
30+ echo "$0 failed. Exiting."
31+ exit 1
32+else
29−cp -f $out $target
33+ cp -f $out $target
34+fi
nix2appimage.sh+8−1
@@ -23,4 +23,11 @@ expr="with import <nixpkgs> {}; with import ./. {}; appimage (appdir { name = \"
23
23
24out=$(nix-store --no-gc-warning -r $(nix-instantiate --no-gc-warning -E "$expr"))
24out=$(nix-store --no-gc-warning -r $(nix-instantiate --no-gc-warning -E "$expr"))
25
25
26−cp -f $out $target
26+if [ -z "$out" ]; then
27+ echo "$0 failed. Exiting."
28+ exit 1
29+else
30+ appimage=$out/*.AppImage
31+ cp -f $appimage .
32+ echo "AppImage created at $(basename $appimage)"
33+fi