mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
usr/bin/byobu-export
This commit is contained in:
parent
dcdb0828f0
commit
48f3615ba8
2 changed files with 14 additions and 4 deletions
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -11,6 +11,7 @@ byobu (2.81) unreleased; urgency=low
|
|||
usr/bin/byobu-launcher-uninstall
|
||||
- usr/bin/byobu-launcher
|
||||
- usr/bin/byobu
|
||||
- usr/bin/byobu-export
|
||||
|
||||
* usr/bin/byobu-config, usr/share/doc/byobu/help.txt: improve help
|
||||
text, per feedback from Turnkey Linux users
|
||||
|
|
|
@ -61,7 +61,14 @@ done
|
|||
if [ -z "$file" ]; then
|
||||
file="$TMP/$PKG.tar.gz"
|
||||
fi
|
||||
echo "$file" | grep -qs "\.tar\.gz$" || error "Target file must be a '.tar.gz' archive"
|
||||
case "$file" in
|
||||
*.tar.gz)
|
||||
true
|
||||
;;
|
||||
*)
|
||||
error "Target file must be a '.tar.gz' archive"
|
||||
;;
|
||||
esac
|
||||
if [ -e "$file" ]; then
|
||||
echo `gettext "File exists"` " [$file]"
|
||||
echo -n "`gettext 'Remove file? [y/N] '`"
|
||||
|
@ -95,9 +102,11 @@ ln -sf usr/share/$PKG/ec2/rates.us_ca "$DIR/.$PKG/ec2_rates"
|
|||
|
||||
# Some gardening; update paths to be $HOME-based
|
||||
for i in /usr/bin/$PKG-*; do
|
||||
if echo "$i" | grep -qs "install"; then
|
||||
continue
|
||||
fi
|
||||
case "$i" in
|
||||
install)
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
bin=$(basename "$i")
|
||||
sed -i "s:$bin:\$HOME/.$PKG$i:g" $(find $DIR -type f)
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue