Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cli/data-exchange-demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ while true; do

3)
read -p "\nFile path: " FILE_PATH
if echo "$FILE_PATH" | grep -q '\.\.'; then echo "Error: Path traversal rejected" && continue; fi
[ ! -f "$FILE_PATH" ] && echo "Error: File not found" && continue
RESULT=$(pilotctl --json send-file "$TARGET_NODE" "$FILE_PATH")
if [ $? -eq 0 ]; then
Expand Down
Loading