mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-11-04 05:12:32 +00:00 
			
		
		
		
	Fix end code for run_remote
Output was missing due to shift. Save cmdline before shifting and use it on way out.
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
			
		||||
run_remote() {
 | 
			
		||||
    echo Running "'$*' from https://$mgr/confluent-public/os/$profile/scripts/"
 | 
			
		||||
    requestedcmd="'$*'"
 | 
			
		||||
    echo Running $requestedcmd from https://$mgr/confluent-public/os/$profile/scripts/"
 | 
			
		||||
    cd $(mktemp -d)
 | 
			
		||||
    curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1
 | 
			
		||||
    chmod +x $1
 | 
			
		||||
@@ -9,7 +10,7 @@ run_remote() {
 | 
			
		||||
    fi
 | 
			
		||||
    shift
 | 
			
		||||
    ./$cmd $*
 | 
			
		||||
    echo "'$*' exited with code $?"
 | 
			
		||||
    echo "$requestedcmd exited with code $?"
 | 
			
		||||
    cd -
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,6 @@
 | 
			
		||||
run_remote() {
 | 
			
		||||
    echo Running "'$*' from https://$mgr/confluent-public/os/$profile/scripts/"
 | 
			
		||||
    requestedcmd="'$*'"
 | 
			
		||||
    echo Running $requestedcmd from https://$mgr/confluent-public/os/$profile/scripts/"
 | 
			
		||||
    cd $(mktemp -d)
 | 
			
		||||
    curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1
 | 
			
		||||
    chmod +x $1
 | 
			
		||||
@@ -9,7 +10,7 @@ run_remote() {
 | 
			
		||||
    fi
 | 
			
		||||
    shift
 | 
			
		||||
    ./$cmd $*
 | 
			
		||||
    echo "'$*' exited with code $?"
 | 
			
		||||
    echo "$requestedcmd exited with code $?"
 | 
			
		||||
    cd -
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,6 @@
 | 
			
		||||
run_remote() {
 | 
			
		||||
    echo Running "'$*' from https://$mgr/confluent-public/os/$profile/scripts/"
 | 
			
		||||
    requestedcmd="'$*'"
 | 
			
		||||
    echo Running $requestedcmd from https://$mgr/confluent-public/os/$profile/scripts/"
 | 
			
		||||
    cd $(mktemp -d)
 | 
			
		||||
    curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1
 | 
			
		||||
    chmod +x $1
 | 
			
		||||
@@ -9,7 +10,7 @@ run_remote() {
 | 
			
		||||
    fi
 | 
			
		||||
    shift
 | 
			
		||||
    ./$cmd $*
 | 
			
		||||
    echo "'$*' exited with code $?"
 | 
			
		||||
    echo "$requestedcmd exited with code $?"
 | 
			
		||||
    cd -
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,6 @@
 | 
			
		||||
run_remote() {
 | 
			
		||||
    echo Running "'$*' from https://$mgr/confluent-public/os/$profile/scripts/"
 | 
			
		||||
    requestedcmd="'$*'"
 | 
			
		||||
    echo Running $requestedcmd from https://$mgr/confluent-public/os/$profile/scripts/"
 | 
			
		||||
    cd $(mktemp -d)
 | 
			
		||||
    curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1
 | 
			
		||||
    chmod +x $1
 | 
			
		||||
@@ -9,7 +10,7 @@ run_remote() {
 | 
			
		||||
    fi
 | 
			
		||||
    shift
 | 
			
		||||
    ./$cmd $*
 | 
			
		||||
    echo "'$*' exited with code $?"
 | 
			
		||||
    echo "$requestedcmd exited with code $?"
 | 
			
		||||
    cd -
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,12 +1,13 @@
 | 
			
		||||
run_remote() {
 | 
			
		||||
    echo Running "'$*' from https://$mgr/confluent-public/os/$profile/scripts/"
 | 
			
		||||
    requestedcmd="'$*'"
 | 
			
		||||
    echo Running $requestedcmd from https://$mgr/confluent-public/os/$profile/scripts/"
 | 
			
		||||
    cd $(mktemp -d)
 | 
			
		||||
    curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1
 | 
			
		||||
    chmod +x $1
 | 
			
		||||
    cmd=$1
 | 
			
		||||
    shift
 | 
			
		||||
    ./$cmd $*
 | 
			
		||||
    echo "'$*' exited with code $?"
 | 
			
		||||
    echo "$requestedcmd exited with code $?"
 | 
			
		||||
    cd -
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user