Make *.sh scripts more clear on what is being created.
commit1eb0583a690b64531dcd65030c107867d4905c2a
authorMatthew Bauer <mjbauer95@gmail.com>
dateMon 6 Feb 2017, 18:18 (10 years ago)
parent9d5a2d8
nix-bundle.sh+6−1
@@ -26,4 +26,9 @@ expr="with import <nixpkgs> {}; with import ./. {}; nix-bootstrap { name = \"$ta
2626
2727out=$(nix-store --no-gc-warning -r $(nix-instantiate --no-gc-warning -E "$expr"))
2828
29−cp -f $out $target
29+if [ -z "$out" ]; then
30+ echo "$0 failed. Exiting."
31+ exit 1
32+else
33+ cp -f $out $target
34+fi
nix2appimage.sh+8−1
@@ -23,4 +23,11 @@ expr="with import <nixpkgs> {}; with import ./. {}; appimage (appdir { name = \"
2323
2424out=$(nix-store --no-gc-warning -r $(nix-instantiate --no-gc-warning -E "$expr"))
2525
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