Browse Source

Change `==` to `=`

pull/1/head
Tim Byrne 7 years ago
parent
commit
df99648478
  1. 12
      yadm

12
yadm

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

Loading…
Cancel
Save