Small safety improvement for buildRT
This commit is contained in:
parent
ea6ed47bc4
commit
a3722e014e
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Written by DrSlony
|
# Written by DrSlony
|
||||||
# buildRT version 4.2, 2015-01-20
|
# buildRT version 4.3, 2015-03-11
|
||||||
# Please report bugs or enhancements to http://code.google.com/p/rawtherapee/issues/list
|
# Please report bugs or enhancements to http://code.google.com/p/rawtherapee/issues/list
|
||||||
# www.rawtherapee.com
|
# www.rawtherapee.com
|
||||||
# www.londonlight.org
|
# www.londonlight.org
|
||||||
@ -25,7 +25,7 @@ esac
|
|||||||
|
|
||||||
#--- Set some variables
|
#--- Set some variables
|
||||||
unset choiceNumber choiceNumbers buildType buildTypes list branch branches repo
|
unset choiceNumber choiceNumbers buildType buildTypes list branch branches repo
|
||||||
version="4.2"
|
version="4.3"
|
||||||
movetoPatched=""
|
movetoPatched=""
|
||||||
repo="${HOME}/rawtherapee"
|
repo="${HOME}/rawtherapee"
|
||||||
procTarget=2
|
procTarget=2
|
||||||
@ -321,6 +321,7 @@ for choiceNumber in "${choiceNumbers[@]}"; do
|
|||||||
a|A) printf "%s\n" "Cannot proceed if old build directory exists." "Remove it or rename it, then re-run this script." "Aborting"
|
a|A) printf "%s\n" "Cannot proceed if old build directory exists." "Remove it or rename it, then re-run this script." "Aborting"
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*) printf "%s\n" "Unknown response \"$REPLY\""
|
*) printf "%s\n" "Unknown response \"$REPLY\""
|
||||||
|
exit 1 ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user