Change `==` to `=`

This commit is contained in:
Tim Byrne 2015-07-17 15:21:47 -06:00
parent 135ed8d4b7
commit df99648478
1 changed files with 6 additions and 6 deletions

12
yadm
View File

@ -43,7 +43,7 @@ function main() {
if [ -z "$*" ] ; then if [ -z "$*" ] ; then
#; no argumnts will result in help() #; no argumnts will result in help()
help help
elif [ "$1" == "gitconfig" ] ; then elif [ "$1" = "gitconfig" ] ; then
#; 'config' is used for yadm, need to use 'gitcofnig' to pass through to git #; 'config' is used for yadm, need to use 'gitcofnig' to pass through to git
shift shift
git_command config "$@" git_command config "$@"
@ -114,7 +114,7 @@ function alt() {
cd $YADM_WORK cd $YADM_WORK
#; only be noisy if the "alt" command was run directly #; only be noisy if the "alt" command was run directly
[ "$YADM_COMMAND" == "alt" ] && loud="YES" [ "$YADM_COMMAND" = "alt" ] && loud="YES"
#; loop over all "tracked" files #; loop over all "tracked" files
#; for every file which matches the above regex, create a symlink #; for every file which matches the above regex, create a symlink
@ -197,7 +197,7 @@ function decrypt() {
YADM_WORK=$(git config core.worktree) YADM_WORK=$(git config core.worktree)
if [ "$DO_LIST" == "YES" ] ; then if [ "$DO_LIST" = "YES" ] ; then
tar_option="t" tar_option="t"
else else
tar_option="x" tar_option="x"
@ -206,7 +206,7 @@ function decrypt() {
#; decrypt the archive #; decrypt the archive
(gpg -d "$YADM_ARCHIVE" || echo 1) | tar v$tar_option -C "$YADM_WORK" (gpg -d "$YADM_ARCHIVE" || echo 1) | tar v$tar_option -C "$YADM_WORK"
if [ $? = 0 ] ; then if [ $? = 0 ] ; then
[ ! "$DO_LIST" == "YES" ] && echo "All files decrypted." [ ! "$DO_LIST" = "YES" ] && echo "All files decrypted."
else else
error_out "Unable to extract encrypted files." error_out "Unable to extract encrypted files."
fi fi
@ -413,7 +413,7 @@ function error_out() {
function auto_alt() { function auto_alt() {
#; process alternates if there are possible changes #; process alternates if there are possible changes
if [ "$CHANGES_POSSIBLE" == "1" ] ; then if [ "$CHANGES_POSSIBLE" = "1" ] ; then
auto_alt=$(config --bool yadm.auto-alt) auto_alt=$(config --bool yadm.auto-alt)
if [ "$auto_alt" != "false" ] ; then if [ "$auto_alt" != "false" ] ; then
alt alt
@ -425,7 +425,7 @@ function auto_alt() {
function auto_perms() { function auto_perms() {
#; process permissions if there are possible changes #; process permissions if there are possible changes
if [ "$CHANGES_POSSIBLE" == "1" ] ; then if [ "$CHANGES_POSSIBLE" = "1" ] ; then
auto_perms=$(config --bool yadm.auto-perms) auto_perms=$(config --bool yadm.auto-perms)
if [ "$auto_perms" != "false" ] ; then if [ "$auto_perms" != "false" ] ; then
perms perms