X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=xremote.git;a=blobdiff_plain;f=xremote.sh;fp=xremote.sh;h=cd6813cc71767741d255df2cd20644aa72523e6a;hp=ce16636621cd464bc42df2ee115d426797997adb;hb=d1eb4ac1ca5dbcfe23a797f0d574a77ec8062923;hpb=db75828ad9cc6638d122009c81be2cb0ee65d2da diff --git a/xremote.sh b/xremote.sh index ce16636..cd6813c 100755 --- a/xremote.sh +++ b/xremote.sh @@ -81,6 +81,8 @@ main="$(basename "$1")" cd "$(dirname "$1")" +shift + trap cleanup_remote_tmp EXIT ###################################################################### @@ -142,7 +144,15 @@ else REMOTE_COMMAND="./${main}" fi -ssh