- # Setup netcat as symlink to ncat, since the other netcat implementations are outdated (gnu-netcat)
- # or non-portable (openbsd-netcat).
- cd $TERMUX_PREFIX/bin
- ln -s -f ncat netcat
- cd $TERMUX_PREFIX/share/man/man1
- ln -s -f ncat.1 netcat.1
+ # Setup 'netcat' and 'nc' as symlink to 'ncat', since the other netcat implementations
+ # are outdated (gnu-netcat) or non-portable (openbsd-netcat).
+ for prog in netcat nc; do
+ cd $TERMUX_PREFIX/bin
+ ln -s -f ncat $prog
+ cd $TERMUX_PREFIX/share/man/man1
+ ln -s -f ncat.1 ${prog}.1
+ done