General Enhancements (#51)

* Fix website not being trashed during reseed.

* Fix port flags.

* Fix errors about comments by being sneaky.

* Add `encfs`.

* Leave the audio alone when compressing videos unless explicitly requested.

* ffmpeg seems to default to 128k audio, raise it to 192k.

* Handle `time` not being installed more gracefully.

* Add audio normlization per Cahlen Lee.

* Try preventing directories from being renamed.

* Add ability to resize videos, similar to process-video in my Termux project's bashrc.

* Add an -A parameter similar to compress_image.sh.

* Handle uppercase extensions, use TRASH for old compressed copies if it exists, print the FFMPEG command.

* Add datestamps around the conversion.

* Maxrate has been working well in Termux project, use it on desktop too, but don't worry about 2-pass.

* Automatically source Docker environment for using manage.sh if user is root and file exists.

* Add android studio.

* Add missing pipes.

* Stop including Nix, inclue TTT, add git stash to reset.
This commit is contained in:
2024-05-16 10:00:49 -07:00
committed by GitHub
parent 04a980a7a3
commit 742f225de1
8 changed files with 95 additions and 34 deletions

View File

@ -69,17 +69,17 @@ if [[ -n $input ]]; then
if [[ $receive == "N" ]]; then
echo -n "Sending '$input' from localhost to '$user@$destination' "
echo " at '$output' using port '$port'."
scp -r -p$port "$user@[$destination]":"$input" "$output"
scp -r -P$port "$user@[$destination]":"$input" "$output"
elif [[ $receive == "Y" ]]; then
echo -n "Receiving '$input' from '$user@$destination' "
echo " to '$output' on localhost using port '$port'."
scp -r -p$port "$input" "$user@[$destination]":"$output"
scp -r -P$port "$input" "$user@[$destination]":"$output"
else
echo "ERROR: Receive variable is screwed up. $receive" >&2
fi
else
echo "No input file provided, connecting to destination."
ssh -t $user@$destination
ssh -t -p$port $user@$destination
fi
date