OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # We should save a change's description when an upload fails. | 3 # We should save a change's description when an upload fails. |
4 | 4 |
5 set -e | 5 set -e |
6 | 6 |
7 . ./test-lib.sh | 7 . ./test-lib.sh |
8 | 8 |
9 # Back up any previously-saved description the user might have. | 9 # Back up any previously-saved description the user might have. |
10 BACKUP_FILE="$HOME/.git_cl_description_backup" | 10 BACKUP_FILE="$HOME/.git_cl_description_backup" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 # Restore the previously-saved description. | 44 # Restore the previously-saved description. |
45 rm -f "$BACKUP_FILE" | 45 rm -f "$BACKUP_FILE" |
46 if [ -e "$BACKUP_FILE_TMP" ]; then | 46 if [ -e "$BACKUP_FILE_TMP" ]; then |
47 mv "$BACKUP_FILE_TMP" "$BACKUP_FILE" | 47 mv "$BACKUP_FILE_TMP" "$BACKUP_FILE" |
48 fi | 48 fi |
49 | 49 |
50 if [ $SUCCESS == 0 ]; then | 50 if [ $SUCCESS == 0 ]; then |
51 echo PASS | 51 echo PASS |
52 fi | 52 fi |
OLD | NEW |