|
|
|
@ -1,4 +1,14 @@ |
|
|
|
#!/bin/bash |
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
current_directory=$(pwd) |
|
|
|
|
|
|
|
require_target_directory="neatoDeploy/app" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ! $current_directory == *$require_target_directory ]]; then |
|
|
|
|
|
|
|
/usr/bin/echo "Only run from neatoDeploy/app github repo dir!" |
|
|
|
|
|
|
|
/usr/bin/echo "please cd into neatoDeploy/app first!" |
|
|
|
|
|
|
|
exit 1 |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ ! -L deploy_files ]; then |
|
|
|
if [ ! -L deploy_files ]; then |
|
|
|
ln -s ../deploy_files . |
|
|
|
ln -s ../deploy_files . |
|
|
|
fi |
|
|
|
fi |
|
|
|
|