mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-28 03:42:50 +01:00
This adds tests for the corner cases of the `wsh file copy` command. At the moment, these focus on local copies since they are more easily replicated. --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
14 lines
264 B
Bash
Executable File
14 lines
264 B
Bash
Executable File
# copy a file where source and destination are resolved with ~
|
|
# ensure the destination file exists
|
|
|
|
set -e
|
|
cd "$HOME/testcp"
|
|
touch foo.txt
|
|
|
|
wsh file copy ~/testcp/foo.txt ~/testcp/bar.txt
|
|
|
|
if [ ! -f bar.txt ]; then
|
|
echo "bar.txt does not exist"
|
|
exit 1
|
|
fi
|