Skip to content

Commit

Permalink
Two fixes
Browse files Browse the repository at this point in the history
- rich history showed folder name with a variable entry, confusing, removed
- tar output was redirected to /dev/null. This was confusing too when an
  error ocured, I wasn't sure what was going on
  • Loading branch information
micharbet committed Oct 16, 2019
1 parent ccf2bac commit b9271ff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions clerc
Expand Up @@ -4,7 +4,7 @@
##
#* author: Michael Arbet (marbet@redhat.com)
#* home: https://github.com/micharbet/CLE
#* version: 2019-09-26 (Zodiac)
#* version: 2019-10-16 (Zodiac)
#* license: GNU GPL v2
#* Copyright (C) 2016-2019 by Michael Arbet

Expand Down Expand Up @@ -390,7 +390,7 @@ _clerh () {
if [[ $V =~ $REX ]]; then
V=${V/\$/}
VD=`vdump $V`
echo -E "$ID;;$;$W;${VD:-unset $V}"
echo -E "$ID;;$;;${VD:-unset $V}"
fi
done;;
xx) # directory bookmark
Expand Down Expand Up @@ -611,7 +611,7 @@ lssh () (
command ssh -t $* "
H=/var/tmp/\$USER; mkdir -m 755 -p \$H; cd \$H
[ \"\$OSTYPE\" = darwin ] && D=D || D=d
echo $C64|base64 -\$D|tar xzf - 2>/dev/null
echo $C64|base64 -\$D|tar xzf -
exec \$H/$RC -m $CLE_ARG"
)
Expand Down
13 changes: 8 additions & 5 deletions clerc.sh
Expand Up @@ -4,7 +4,7 @@
##
#* author: Michael Arbet (marbet@redhat.com)
#* home: https://github.com/micharbet/CLE
#* version: 2019-09-26 (Zodiac)
#* version: 2019-10-16 (Zodiac)
#* license: GNU GPL v2
#* Copyright (C) 2016-2019 by Michael Arbet

Expand Down Expand Up @@ -505,7 +505,7 @@ _clerh () {
if [[ $V =~ $REX ]]; then
V=${V/\$/}
VD=`vdump $V`
echo -E "$ID;;$;$W;${VD:-unset $V}"
echo -E "$ID;;$;;${VD:-unset $V}"
fi
done;;
xx) # directory bookmark
Expand Down Expand Up @@ -761,8 +761,9 @@ _clepak () {
echo "CLE_DEBUG='$CLE_DEBUG'" >>$EN # dbg
cat $CLE_AL >>$EN 2>/dev/null
fi
#: if tarball required, create it and save to $C64
#: I've never owned this computer, I had Atari 800XL :)
#: save the envrironment tarball into $C64 if required
#: Note: I've never owned this computer, I had Atari 800XL instead :-)
#: Anyway, the variable name can be considered as a tribute to the venerable 8-bit
[ $1 ] && C64=`eval tar chzf - $RC $TW $EN 2>/dev/null | base64 | tr -d '\n\r '`
#: ^^^^ 'eval' required due to zsh.
}
Expand All @@ -778,8 +779,10 @@ lssh () (
H=/var/tmp/\$USER; mkdir -m 755 -p \$H; cd \$H
export CLE_DEBUG='$CLE_DEBUG' # dbg
[ \"\$OSTYPE\" = darwin ] && D=D || D=d
echo $C64|base64 -\$D|tar xzf - 2>/dev/null
echo $C64|base64 -\$D|tar xzf -
exec \$H/$RC -m $CLE_ARG"
#: it is not possible to use `base63 -\$D <<<$C64|tar xzf -`
#: systems with 'ash' instead of bash would generate an error (e.g. Asustor)
)
#: Following are su* wrappers of different kinds including kerberos
Expand Down
Binary file added logo/CLE-rainbowlogo.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b9271ff

Please sign in to comment.