Minor fixes as well as clean-up surrounding internal functions.
This commit is contained in:
parent
405c1e7244
commit
e3a2efdb43
12 changed files with 218 additions and 134 deletions
6
sw
6
sw
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue