Ubuntu Pastebin

Paste from Tj at Tue, 28 Nov 2017 22:43:08 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
debootstrap-1.0.78+nmu1ubuntu1.5  git diff
diff --git a/functions b/functions
index d75c11d..92ac839 100644
--- a/functions
+++ b/functions
@@ -401,7 +401,7 @@ just_get () {
                fi
                if [ -e "$base" ]; then
                        cp "$base" "$dest"
-                       return 0
+                       return $?
                else
                        return 1
                fi
@@ -409,7 +409,7 @@ just_get () {
                local ssh_dest="$(echo $from | sed -e 's#ssh://##' -e 's#/#:/#')"
                if [ -n "$ssh_dest" ]; then
                        scp "$ssh_dest" "$dest"
-                       return 0
+                       return $?
                else
                        return 1
                fi
Download as text