Skip to content
Snippets Groups Projects
Verified Commit e5b9ab35 authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

mkpkg: Wrap the script passed over ssh in another level of quotes

Needed because we still have the login (command) shell to deal with.
parent a176a696
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,7 @@ repoadd() {
if [[ -n $repohost ]]; then
ssh -q $repohost mkdir -p $repodir/$1
scp -q $files $repohost:$repodir/$1/
ssh -q $repohost zsh -c ":
ssh -q $repohost zsh -c ${(q):-":
setopt extendedglob nomatch
repodir=${repodir:q}
repodb=${repodb:q}
......@@ -162,7 +162,7 @@ repoadd() {
files=(${files:q})
$(declare -f repoadd_remote)
repoadd_remote ${1:q}
"
"}
else
mkdir -p $repodir/$1
cp $files $repodir/$1/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment