mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 05:53:22 -07:00
stupid mistakes
This commit is contained in:
parent
e486a774ef
commit
2de829857a
2 changed files with 15 additions and 14 deletions
1
debian/install
vendored
1
debian/install
vendored
|
@ -6,4 +6,5 @@ bin/updates-available usr/share/screen-profiles/bin
|
|||
profiles/common usr/share/screen-profiles/profiles
|
||||
profiles/debian.screenrc usr/share/screen-profiles/profiles
|
||||
profiles/ubuntu.screenrc usr/share/screen-profiles/profiles
|
||||
profiles/ubuntu.key usr/share/screen-profiles/profiles
|
||||
select-screen-profile usr/bin
|
||||
|
|
|
@ -12,10 +12,10 @@ if [ -e "$HOME/.screenrc-profile" ]; then
|
|||
fi
|
||||
# Ensure that ~/.screenrc-key is a symbolic link
|
||||
if [ -e "$HOME/.screenrc-key" ]; then
|
||||
>---if [ ! -L "$HOME/.screenrc-key" ]; then
|
||||
>--->---echo `gettext 'Error:'` $HOME/.screenrc-key `gettext 'exists, but is not a symlink'`
|
||||
>--->---exit 1
|
||||
>---fi
|
||||
if [ ! -L "$HOME/.screenrc-key" ]; then
|
||||
echo `gettext 'Error:'` $HOME/.screenrc-key `gettext 'exists, but is not a symlink'`
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Prompt the user to choose among the available profiles
|
||||
|
@ -65,16 +65,16 @@ for x in $profiles; do
|
|||
cat "$HOME/.screenrc" >> "$tmp"
|
||||
mv -f "$tmp" "$HOME/.screenrc"
|
||||
fi
|
||||
>--->--->---# If the user does have a .screenrc, see if it has the second
|
||||
>--->--->---# source line
|
||||
>--->--->---if ! grep -qs "source $HOME/.screenrc-key" "$HOME/.screenrc"; then
|
||||
>--->--->--->---# And if it's missing the source line, add it
|
||||
>--->--->--->---# to the top
|
||||
>--->--->--->---tmp=`mktemp "$HOME/.screenrc.XXXXXX"`
|
||||
>--->--->--->---echo "source $HOME/.screenrc-key" > "$tmp"
|
||||
>--->--->--->---cat "$HOME/.screenrc" >> "$tmp"
|
||||
>--->--->--->---mv -f "$tmp" "$HOME/.screenrc"
|
||||
>--->--->---fi
|
||||
# If the user does have a .screenrc, see if it has the second
|
||||
# source line
|
||||
if ! grep -qs "source $HOME/.screenrc-key" "$HOME/.screenrc"; then
|
||||
# And if it's missing the source line, add it
|
||||
# to the top
|
||||
tmp=`mktemp "$HOME/.screenrc.XXXXXX"`
|
||||
echo "source $HOME/.screenrc-key" > "$tmp"
|
||||
cat "$HOME/.screenrc" >> "$tmp"
|
||||
mv -f "$tmp" "$HOME/.screenrc"
|
||||
fi
|
||||
fi
|
||||
rm -f "$HOME/.screenrc-profile"
|
||||
rm -f "$HOME/.screenrc-key"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue