+# Execute shell if no command has been supplied
+if [ -z "$1" ];then
+ ARGS="$ARGS $PROGRAM -l"
+ exec $PREFIX/bin/proot $ARGS
+else
+ # When a command is executed directly instead of opening a shell run
+ # the command in the current working directory instead of in /home
+ ARGS="$ARGS --cwd=."
+ # Start supplied command with "sh -c" so things like these work:
+ # termux-chroot "make;make install"
+ # termux-chroot "SOME_CONFIG=value ./configure"
+ exec $PREFIX/bin/proot $ARGS sh -c "$*"
+fi