9 lines
508 B
Shell
Executable file
9 lines
508 B
Shell
Executable file
#!/usr/bin/env bash
|
|
# Copies the IDE Remote channel library into the jumphp-ide-remote app (kept identical), when its folder exists.
|
|
set -euo pipefail
|
|
root="$(cd "$(dirname "$0")/.." && pwd)"
|
|
dest="${JUMPHP_IDE_REMOTE_APP:-/home/david/JumPHP-Projects/jumPhpIdeRemote/apps/jumphp-ide-remote}"
|
|
if [ ! -d "$dest" ]; then echo "no app folder at $dest: nothing to sync"; exit 0; fi
|
|
mkdir -p "$dest/ui/js"
|
|
cp "$root/ide/ui/js/remote/channel.js" "$dest/ui/js/channel.js"
|
|
echo "channel.js -> $dest/ui/js/channel.js"
|