diff options
| author | danix <danix@danix.xyz> | 2023-04-14 09:32:15 +0200 |
|---|---|---|
| committer | danix <danix@danix.xyz> | 2023-04-14 09:32:15 +0200 |
| commit | b1e2a0183a9b5b587968f2ab77ac5952331d1972 (patch) | |
| tree | e5b0fc44e1fe1e49626d71bf40559ad2319429a3 /SOURCE/head.sh | |
| parent | 87a368fe55efdd2cba599e07f29786a3ad745310 (diff) | |
| download | bash-notes-b1e2a0183a9b5b587968f2ab77ac5952331d1972.tar.gz bash-notes-b1e2a0183a9b5b587968f2ab77ac5952331d1972.zip | |
removed the 'function' keyword before declaring a function as is not needed.
Diffstat (limited to 'SOURCE/head.sh')
| -rw-r--r-- | SOURCE/head.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SOURCE/head.sh b/SOURCE/head.sh index d609726..7b684f1 100644 --- a/SOURCE/head.sh +++ b/SOURCE/head.sh @@ -91,7 +91,7 @@ fi echo $PID > "$PIDFILE" # Export config to file -function export_config() { +export_config() { if [ -r ${RCFILE} ]; then echo "Backing up current '${RCFILE}'...." mv -f ${RCFILE} ${RCFILE}.$(date +%Y%m%d_%H%M) @@ -112,7 +112,7 @@ function export_config() { # we should expand on this function to add a sample note and explain a little bit # how the program works. -function firstrun() { +firstrun() { [ -f $RCFILE ] && RC=$RCFILE || RC="none" clear |
