Ed_P wrote: ↑05 Oct 2022, 00:56
Suggestion, run the following terminal commands. Note, make the "URMODULESPATH" equal to the path to your /modules folder.
During the 5.0rc days I suggested a script-based solution to fulalas that will update the date of today as
and write that into ${YOURMODULEPATH}/etc/porteus/003-xfce4.ver … all he had to do was adjust ${YOURMODULEPATH to whatever his recent XFCE module to create path was… but he ignored that and he never replied when I pointed out that his XFCE modules got the /etc/porteus/003-xfce4.ver wrong … so I gave up.
And sure, doing the above
would fix the /etc/porteus/003-xfce4.ver
for my module, but that would also mean when some other user has the same module as mine, his and my /etc/porteus/003-xfce4.ver would now differ, even when we have the same module, because the only thing different between the user's XFCE4.12 and my module would be its /etc/porteus/003-xfce4.ver .
And that would certainly confuse people - thinking the user's own module and mine must be different ones when they are not. Therefore I keep the wrong .ver file and comment on it - unless I have either an XFCE module made by myself (unlikely, since I lack the skills fulalas has when it comes to compiling the module's binaries into cutting edge performing binaries ) or he creates newer version(s) and gets their /etc/porteus/003-xfce4.ver correct (e.g. by creating his own script based updater for /etc/porteus/003-xfce4.ver or by simply copying and adjusting my code I provided to fulalas many many moons ago)
Added in 2 hours 6 minutes 32 seconds:
The really nice thing about the date command is - you do not need sed or such, not even an additional echo ${date parameter} construct to get a certain needed format with extra info.
E.g.
Code: Select all
guest@porteus:~$ date +"%Y-%m-%d %H:%M"
2022-10-05 05:22
Simple enough.
But you need padding at the front and extra info at the back? Say, for logging purposes. No problemo:
Code: Select all
guest@porteus:~$ date +" %Y-%m-%d %H:%M - script XXX.sh started"
2022-10-05 05:22 - script XXX.sh started