Minor fixes as well as clean-up surrounding internal functions.

This commit is contained in:
Sam Hardeman 2025-12-13 04:16:43 +01:00
parent 405c1e7244
commit e3a2efdb43
12 changed files with 218 additions and 134 deletions

6
sw
View file

@ -1,7 +1,7 @@
#!/bin/sh
# It just swaps two files
export DAISY_INTERNAL1
export LD_INTERNAL1
. $(dirname $(realpath $0))/daisy.source
file1=$1
@ -13,9 +13,9 @@ function helpFn()
if [[ $error -gt 0 ]];
then
error_text=$(perl -E 'say $!=shift' $error)
echo "$DAISY_BIN error ($error): $error_text"
echo "$LD_BIN error ($error): $error_text"
fi
echo "Usage: $DAISY_BIN <file1> <file2>"
echo "Usage: $LD_BIN <file1> <file2>"
echo Swap two files in a filesystem.
exit $error
}