Skip to content

Instantly share code, notes, and snippets.

@gaqzi
Created June 1, 2011 16:42
Show Gist options
  • Save gaqzi/1002718 to your computer and use it in GitHub Desktop.
Save gaqzi/1002718 to your computer and use it in GitHub Desktop.
Installation patch for Citrix Receiver v11.100 when installing manually
If you have "too much" free space the installation stops because the resulting
SPACE_AVAILABLE is not just numbers, and thus can't be used by expr.
This patch removes all characters that is not numeric, so in my case the
free space changes from 210974368K to 210974368 and I can install the receiver.
Running on Ubuntu 11.04 with the tools installed for that version.
--- linuxx86/hinst.orig 2011-06-01 18:22:39.870590594 +0200
+++ linuxx86/hinst 2011-06-01 18:28:47.750590646 +0200
@@ -1052,7 +1052,7 @@
SPACE_AVAILABLE=`df "$inst_fs_dir" | awk '
NR==2{avail=$4}
NR==3{avail=$3}
- END {print avail}'`
+ END { sub(/[^0-9]+/, "", avail) ; print avail}'`
}
#!/bin/sh
###############################################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment