cn-progload: Update for compatibility with new cnsftp

This commit is contained in:
David Thurstenson 2021-05-14 11:54:30 -05:00
parent 8346e5ea59
commit b10410c20b
1 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ cn-progload() {
if [[ -n $slot ]]; then
echo "==NOTICE== Ignoring slot number for touchpanel project..."
fi
printf 'put %q' "$project" | cnsftp "$addr:display"
printf 'put %q %q' "$project" "/display/"| cnsftp "$addr"
cnssh "$addr" projectload
;;
@ -30,13 +30,13 @@ cn-progload() {
# Stop and delete current program in $slot
cnssh "$addr" killprog -P$slot
# Upload
printf 'put %q' "$project" | cnsftp "$addr:Program$slot"
printf 'put %q %q' "$project" "/Program$slot" | cnsftp "$addr"
# Load the program
cnssh "$addr" progload -p:$slot
# Zip up the sig file in a temporary location
zip -j - "$projfname.sig" > "$zigstash"
# Upload the zig
printf 'put %q %q' "$zigstash" "$projfnamebase.zig" | cnsftp "$addr:Program$slot"
printf 'put %q %q' "$zigstash" "/Program$slot/$projfnamebase.zig" | cnsftp "$addr"
;;
*)