diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2016-10-21 11:55:32 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2016-10-21 11:55:32 +0200 |
| commit | ed87ba72282a8e5c2cd3f5631748726c930809bd (patch) | |
| tree | 7630ffdce6bcf1fdcda49ca04b3dc890e52d18ee /bin/test/test.sh | |
| parent | e46f1d3dea4f7cda296628b81b174f6ed7a42032 (diff) | |
| download | dotfiles-ed87ba72282a8e5c2cd3f5631748726c930809bd.tar.gz dotfiles-ed87ba72282a8e5c2cd3f5631748726c930809bd.zip | |
emacs: trying to test it with travis
Files and idea taken from https://github.com/purcell/emacs.d. I've also
added the bin/test directory into it.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'bin/test/test.sh')
| -rwxr-xr-x | bin/test/test.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/test/test.sh b/bin/test/test.sh index 58a8530..f9f23a8 100755 --- a/bin/test/test.sh +++ b/bin/test/test.sh @@ -15,10 +15,12 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # Back up the current files and get paths straight. +set -e dir="$( cd "$( dirname "$0" )" && pwd )" -license=$(realpath "$dir/../license") +license=$(readlink -f "$dir/../license") cp "$dir/main.cpp" "$dir/main.cpp.old" cp "$dir/README.md" "$dir/README.md.old" +set +e status=0 # license main.cpp @@ -46,4 +48,3 @@ else echo "OK" fi exit $status - |
