16 lines
421 B
Bash
Executable File
16 lines
421 B
Bash
Executable File
#!/bin/sh
|
|
|
|
U2W_UTILS_DIR=$(dirname `readlink -f "$0"`)/..
|
|
|
|
source $U2W_UTILS_DIR/utils/config.sh
|
|
|
|
source $U2W_UTILS_DIR/utils/check_connection.sh
|
|
|
|
# create local development directory if it does not exist already
|
|
mkdir -p $LOCAL_U2W_DIR
|
|
|
|
# mount the remote development directory
|
|
if [ -z "$(ls -A $LOCAL_U2W_DIR)" ]; then
|
|
sshfs -o reconnect -o ServerAliveInterval=15 $REMOTE_HOST_SHORT:$REMOTE_U2W_DIR $LOCAL_U2W_DIR
|
|
fi
|