#!/bin/bash
set -e

cd "$(dirname $0)"

mkdir -p /usr/local/bin

cat >/usr/local/bin/luan <<End
#!/bin/bash

"$(pwd)/luan.sh" "\$@"
End

chmod +x /usr/local/bin/luan

echo "the command 'luan' has been installed"
