aseprite/cli/save-as.sh
David Capello 91e64cd436 Add scripts to test the CLI features
I'm going to move my internals CLI tests to this repo in the near future.
This is a first version to try the new --ignore-empty --save-as feature.
2018-11-07 16:49:31 -03:00

24 lines
468 B
Bash

#! /bin/bash
# Copyright (C) 2018 Igara Studio S.A.
function list_files() {
oldwd=$(pwd)
cd $1 && ls -1 *.*
cd $oldwd
}
# --save-as
d=$t/save-as
$ASEPRITE -b sprites/1empty3.aseprite --save-as "$d/image00.png"
expect "image00.png
image01.png
image02.png" "list_files $d"
# --ignore-empty --save-as
d=$t/save-as-ignore-empty
$ASEPRITE -b sprites/1empty3.aseprite --ignore-empty --save-as $d/image00.png
expect "image00.png
image02.png" "list_files $d"