nacl_build.sh: use portable way of entering previous directory
commitfc0b91758c976de050cf6fc9e905ab677e79c946
authorJon Schipp <jonschipp@gmail.com>
Mon, 21 Jul 2014 20:36:22 +0000 (21 15:36 -0500)
committerDaniel Borkmann <dborkman@redhat.com>
Tue, 22 Jul 2014 19:27:22 +0000 (22 21:27 +0200)
tree9a396009d596fe7436896929729c12ea9fbe9f21
parent46b0ace509d9ed013915e9ab8013c7c712e11395
nacl_build.sh: use portable way of entering previous directory

While writing a puppet manifest to provision netsniff-ng on a server.
I encountered the following shell warnings:

Notice: /Stage[main]/Netsniff_ng::Install/Exec[Install Netsniff-NG]/returns: Building NaCl for arch amd64 on host localhost (grab a coffee, this takes a while) ...
Notice: /Stage[main]/Netsniff_ng::Install/Exec[Install Netsniff-NG]/returns: ./nacl_build.sh: line 41: cd: /root/netsniff-ng/curvetun: No such file or directory
Notice: /Stage[main]/Netsniff_ng::Install/Exec[Install Netsniff-NG]/returns: NaCl lib path /root/nacl/nacl-20110221/build/localhost/lib/amd64
Notice: /Stage[main]/Netsniff_ng::Install/Exec[Install Netsniff-NG]/returns: NaCl include path /root/nacl/nacl-20110221/build/localhost/include/amd64
Notice: /Stage[main]/Netsniff_ng::Install/Exec[Install Netsniff-NG]/returns: ./nacl_build.sh: line 49: ./nacl_path.sh: No such file or directory

They went away after I applied this patch.

Signed-off-by: Jon Schipp <jonschipp@gmail.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
curvetun/nacl_build.sh