lehrkraefte:blc:informatik:glf24:bash:gitbashcommands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
lehrkraefte:blc:informatik:glf24:bash:gitbashcommands [2025/02/02 11:30] Ivo Blöchligerlehrkraefte:blc:informatik:glf24:bash:gitbashcommands [2025/02/11 08:30] (current) Ivo Blöchliger
Line 4: Line 4:
 <code bash> <code bash>
 function zip() { function zip() {
-        echo "Running powershell Compress-Archive ${1} ${1%/}.zip" +        echo "Running powershell Compress-Archive ${1} $(basename "$1").zip" 
-        powershell Compress-Archive "$1" "${1%/}".zip+        powershell Compress-Archive "$1" "$(basename "$1")".zip
 } }
 </code> </code>
  • lehrkraefte/blc/informatik/glf24/bash/gitbashcommands.1738495854.txt.gz
  • Last modified: 2025/02/02 11:30
  • by Ivo Blöchliger